Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # FILE: start.sh
- #!/bin/bash -ex
- PRODUCTION=1 forever start -a --uid "hapiplugins" --killSignal=SIGTERM -c node index.js
- # PRODUCTION=1 nohup node -max-old-space-size=8192 index.js &
- echo $! > .pid
- # FILE: stop.sh
- #!/bin/bash -ex
- PRODUCTION=1 forever start -a --uid "hapiplugins" --killSignal=SIGTERM -c node index.js
- # PRODUCTION=1 nohup node -max-old-space-size=8192 index.js &
- echo $! > .pid
- MacBooks-MacBook-Air:hapi-plugins.com jhyland$ cat scripts/stop.sh
- #!/bin/bash -ex
- kill -SIGINT `cat .pid`
- killall node
- # FILE: restart.sh
- #!/bin/bash -ex
- # kill -SIGINT `cat .pid`
- killall node
- # PRODUCTION=1 nohup node -max-old-space-size=8192 index.js &
- PRODUCTION=1 forever start -a --uid "hapiplugins" --killSignal=SIGTERM -c node index.js
- echo $! > .pid
Advertisement
Add Comment
Please, Sign In to add comment