mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
pm2 script
This commit is contained in:
parent
a67958308b
commit
930b274bd2
4
Makefile
4
Makefile
@ -44,9 +44,9 @@ run:
|
||||
@node app.js
|
||||
|
||||
start: install build
|
||||
@NODE_ENV=production nohup ./node_modules/.bin/pm2 start app.js -i 0 --name "cnode" --max-memory-restart 400M >> cnode.log 2>&1 &
|
||||
@NODE_ENV=production ./node_modules/.bin/pm2 start app.js -i 0 --name "cnode" --max-memory-restart 400M
|
||||
|
||||
restart: install build
|
||||
@NODE_ENV=production nohup ./node_modules/.bin/pm2 restart "cnode" >> cnode.log 2>&1 &
|
||||
@NODE_ENV=production ./node_modules/.bin/pm2 restart "cnode"
|
||||
|
||||
.PHONY: install test cov test-cov build run start restart
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user