1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore(readme): forever package

This commit is contained in:
munja
2022-02-11 10:47:40 +01:00
parent 9a74ec545d
commit d4e8d91cae

View File

@@ -122,6 +122,26 @@ npm run server
This will install/build `web` and install `api`, then start prod server.
Normally the server process will stop when your terminal dies. To keep it going you can use the npm package [forever](https://www.npmjs.com/package/forever) as follows:
```bash
npm i -g forever
forever start -c "npm run server:start" ./
```
To get the log files:
```bash
forever list
# grap log file link
tail -f log-file=LOGFILELINK
```
To stop:
```
forever stop <pid>
```
## Executables
Command to generate executables