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