Skip to content

Commit 15285fc

Browse files
committed
all depencies in production mode
1 parent 3835883 commit 15285fc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

docs/DEVELOPMENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Here are webmc proxy options in ?proxy=[string] url param:
5050

5151
## Own proxy server
5252

53-
You can also setup your own proxy server. It is just translates Websocket connection to TCP connection. You don't need to install all the depencies, just the ones you need. First of all install only production depencies by running ```npm install --only=production```. Then, all you have to do is to run ```npm run proxy``` on server and change some configs in ```/src/assets/config.json```. Sometimes it is also useful to swap the "proxy" script with "start" in package.json (your app will run proxy by default).
53+
You can also setup your own proxy server. It is just translates Websocket connection to TCP connection. All you have to do is to run ```npm run proxy``` on server and change some configs in ```/src/assets/config.json```. Sometimes it is also useful to swap the "proxy" script with "start" in package.json (your app will run proxy by default).
5454

5555
## Download production files
5656

@@ -69,12 +69,12 @@ First install Docker. I won't get into this here, there are millions of resourc
6969
```
7070
Next build the Docker image
7171

72-
```bash
72+
```bash
7373
docker build . -t michaljaz/webmc
7474
```
7575
After the docker image has been built, you can then run the docker image with the following
7676

77-
```bash
77+
```bash
7878
docker run -p 8080:8080 -d michaljaz/webmc
7979
```
80-
Now open your browser to http://localhost:8080
80+
Now open your browser to http://localhost:8080

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"cors": "^2.8.5",
3333
"crypto": "^1.0.1",
3434
"express": "^4.17.1",
35-
"express-ws": "^4.0.0"
36-
},
37-
"devDependencies": {
35+
"express-ws": "^4.0.0",
3836
"ansi-to-html": "^0.6.14",
3937
"assert": "^2.0.0",
4038
"bootstrap": "^4.6.1",

0 commit comments

Comments
 (0)