mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
Launching pm2 via a wrapper that launches pm2 as a daemon in the background and then runs pm2 logs --raw in the foreground. This gets us the logs that we want without the additional cruft that pm2 outputs by default
4 lines
100 B
Bash
Executable file
4 lines
100 B
Bash
Executable file
#!/bin/sh
|
|
|
|
./node_modules/pm2/bin/pm2 start ./pm2-prod-$1.yml
|
|
./node_modules/pm2/bin/pm2 logs --raw
|