mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
f66bd8643b
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
5 lines
100 B
Bash
Executable file
5 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
|