Merge branch 'main' into 'main'

Update

See merge request RemixDev/deemix-gui!7
This commit is contained in:
RemixDev 2022-11-22 20:58:52 +00:00
commit b5ec1894de
2 changed files with 19 additions and 9 deletions

View File

@ -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. 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`. 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. You can change the default port by setting the environment variable `PORT` to any other number before starting the app.
## Building the app ## Building the app
To build the app you need to have git installed and the repo cloned with `git`. 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`). 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.
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 ## Feature requests
Before asking for a feature make sure it isn't an already open issue on the repo Before asking for a feature make sure it isn't an already open issue on the repo

View File

@ -41,10 +41,11 @@ export function getListeningCb(server: http.Server, debug: Debugger) {
const addr = server.address() const addr = server.address()
if (addr) { 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}`) debug(`Listening on ${ip}:${port}`)
logger.info(`Listening on ${bind}`) logger.info(`Listening on ${ip}:${port}`)
} }
} }
} }