Mailspring/_n1cloud_docker_launcher.sh
Jeremy Price f66bd8643b [n1cloud][docker][logs] added pm2 wrapper for logs
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
2017-02-16 17:29:59 -08:00

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