diff options
| author | Zephyrrus <[email protected]> | 2020-07-19 22:35:59 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-19 22:35:59 +0300 |
| commit | 645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48 (patch) | |
| tree | 4c454e816b699ead53d225afadfb528649d126f7 /docs/pm2.md | |
| parent | feat: Start working on a new album/tags/image info modal (diff) | |
| parent | Update setup script (diff) | |
| download | host.fuwn.me-645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48.tar.xz host.fuwn.me-645b62b81dc46b2e2bdea0fbe30c36c4e0ff4a48.zip | |
Merge branch 'dev' into dev-zephy
Diffstat (limited to 'docs/pm2.md')
| -rw-r--r-- | docs/pm2.md | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/docs/pm2.md b/docs/pm2.md deleted file mode 100644 index ac942fc..0000000 --- a/docs/pm2.md +++ /dev/null @@ -1,11 +0,0 @@ -## Setting up PM2 to run lolisafe - -The best way to keep the service running in case of crashes or unexpected issues is to attach the process to PM2 and forget about it. This also gives you the ability to dettach the process from your terminal and run it in the background, which is a must since lolisafe now comes in 2 separate processes. -The recommended way to set it up is to run the commands below, one for the API and the other for the site. - -``` -pm2 start npm --name "lolisafe-api" -- run api -pm2 start npm --name "lolisafe-site" -- run site -``` - -All set, if you want to check the logs you can `pm2 logs lolisafe-api` or similar. |