Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/Makefile Secret

Created August 1, 2012 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/53d13b7b52bf2677d1ab to your computer and use it in GitHub Desktop.
Save Raynos/53d13b7b52bf2677d1ab to your computer and use it in GitHub Desktop.
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