From fcd0563f15cac9f862b632df94ad3750b40dad26 Mon Sep 17 00:00:00 2001 From: marzavec Date: Fri, 8 Nov 2019 09:25:37 -0600 Subject: Update DEPLOY.md --- documentation/DEPLOY.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/DEPLOY.md b/documentation/DEPLOY.md index 31bb5d7..fa63f87 100644 --- a/documentation/DEPLOY.md +++ b/documentation/DEPLOY.md @@ -13,7 +13,7 @@ 1. (Follow steps 1 - 3 above) 1. Use PM2 to start the backend server. - * Terminal Command: `pm2 start ./server/main.js --node-args="-r esm" --name hackchat-dev-server` + * Terminal Command: `pm2 start ./server/main.js --node-args="-r esm" --name hackchat` * See tips below to make the server start on boot. 1. Migrate the contents of `./hackchat/client` into any suitable directory of your webserver. HackChat comes bundled with `http-server` for development purposes only, it is highly recommended that you use a better web server such as Nginx or Apache. 1. (OPTIONAL) Cleanup; you may delete `hackchat/clientSource` and `hackchat/documentation` @@ -24,8 +24,8 @@ * **Do not use root.** Installing while using the root account or installing with root privileges will result in an error similar to the following: `npm WARN lifecycle hack.chat-v2@2.1.92~postinstall: cannot run in wd hack.chat-v2@2.1.91 cd ./clientSource && npm install && cd .. & cd ./server && npm install && npm run config (wd='/dir')` * PM2 may be configured to start the backend server on boot, read [https://pm2.keymetrics.io/docs/usage/startup/](https://pm2.keymetrics.io/docs/usage/startup/) -* On some computers, due to a bug in `http-server`, **a blank page** may be shown while attempting to open the default index page. If this happens, change the url to include `index.html`, or browse to a channel; `http://127.0.0.1:3000/?programming` -* **Do not install using** `sudo apt install nodejs`, instead use: +* On some computers, due to a bug in `http-server`, **a blank page** may be shown while attempting to open the default index page. If this happens, change the url to include `index.html`, or browse to a channel; `http://127.0.0.1:3000/index.html?programming`. See https://github.com/hack-chat/main/issues/83 +* **Do not install NodeJS using** `sudo apt install nodejs`, instead use: ```bash cd ~ curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh -- cgit v1.2.1