-
-
Save Raynos/53d13b7b52bf2677d1ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CWD := $(shell pwd) | |
FOREVER_DIR := $(CWD)/.forever | |
HOME = $(CWD)/.forever | |
install: | |
mkdir -p .forever | |
start: | |
NODE_ENV=production ./node_modules/.bin/forever start \ | |
--append \ | |
-l $(FOREVER_DIR)/forever.log \ | |
-o out.log \ | |
-e err.log \ | |
-p $(FOREVER_DIR) \ | |
--spinSleepTime 3000 \ | |
--debug \ | |
--verbose \ | |
index.js | |
list: | |
./node_modules/.bin/forever \ | |
-p $(FOREVER_DIR) \ | |
list | |
stopall: | |
./node_modules/.bin/forever \ | |
-p $(FOREVER_DIR) \ | |
stopall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment