From 58cd8b72f644f3bdada268c58092773188419e87 Mon Sep 17 00:00:00 2001 From: Justman10000 Date: Tue, 22 Nov 2022 20:58:52 +0000 Subject: [PATCH] Update --- README.md | 21 +++++++++++++++------ server/src/helpers/server-callbacks.ts | 7 ++++--- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 77eba27..bc66600 100644 --- a/README.md +++ b/README.md @@ -9,17 +9,26 @@ You need to use nodejs 16.x, using `yarn` is recommended. If you're using git to get this repo you should use `git submodule update --init --recursive` as well. If you're just downloading the archive.zip, make sure you download and extract deemix-webui into the webui folder. -Install the dependencies using `yarn install` or just `yarn`. +Install the dependencies using `yarn install-all` for production. +Install the dependencies using `yarn install-all-dev` for development. Then you should be able to run the app with `yarn start`. +If you want to further develop Deemix and propose a PR, use `yarn dev` + +Here as command examples: + +```sh +# Production +git clone https://gitlab.com/RemixDev/deemix-gui.git . && git submodule update --init --recursive && yarn install-all +# Development +git clone https://gitlab.com/RemixDev/deemix-gui.git . && git submodule update --init --recursive && yarn install-all-dev +``` You can change the default port by setting the environment variable `PORT` to any other number before starting the app. ## Building the app To build the app you need to have git installed and the repo cloned with `git`. -Make sure you've installed the dependencies for all packages (the root folder, `server` and `webui`). -You can install them with `yarn install-all`. -Then from the root folder run `yarn dist` to make a distributable package for your current OS or `yarn dist-server` -to make an executable for only the server. +Make sure you've installed the dependencies for all packages (the root folder, `server` and `webui`). +Then from the root folder run `yarn dist` to make a distributable package for your current OS or `yarn dist-server` to make an executable for only the server. ## Feature requests Before asking for a feature make sure it isn't an already open issue on the repo @@ -36,4 +45,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program. If not, see . +along with this program. If not, see . diff --git a/server/src/helpers/server-callbacks.ts b/server/src/helpers/server-callbacks.ts index b1542d4..3faf2d0 100644 --- a/server/src/helpers/server-callbacks.ts +++ b/server/src/helpers/server-callbacks.ts @@ -41,10 +41,11 @@ export function getListeningCb(server: http.Server, debug: Debugger) { const addr = server.address() if (addr) { - const bind = typeof addr === 'string' ? 'pipe ' + addr : 'port ' + addr.port + const ip = typeof addr === 'string' ? 'pipe ' + addr : addr.address + const port = typeof addr === 'string' ? 'pipe ' + addr : addr.port - debug(`Listening on ${bind}`) - logger.info(`Listening on ${bind}`) + debug(`Listening on ${ip}:${port}`) + logger.info(`Listening on ${ip}:${port}`) } } }