Skip to content

Instantly share code, notes, and snippets.

@outbounder
Created June 30, 2014 12:00
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 outbounder/380642fc8838455931d9 to your computer and use it in GitHub Desktop.
Save outbounder/380642fc8838455931d9 to your computer and use it in GitHub Desktop.
angelscripts cellcmds cell.json
{
"remote": "user@11.222.333.444",
"cwd": "~/app",
"source": "git@app.git",
"origin": "origin",
"branch": "develop",
"nvmPath": "~/.nvm/nvm.sh",
"nodeVersion": "v0.10.24",
"start": "forever --sourceDir /home/app -a -l /home/app/app.js.out --minUptime 5000 --spinSleepTime 2000 start app.js",
"stop": "forever stop app.js",
"restart": "forever restart app.js",
"status": "forever list",
"build": "CELL_MODE=_staging node ./node_modules/.bin/angel app build",
"upgrade": "git fetch {origin} && git checkout {branch} && git pull {origin} {branch} && npm install --production && {build} && {stop} && {start}",
"backendupgrade": "git fetch {origin} && git checkout {branch} && git pull {origin} {branch} && npm install --production && {stop} && {start}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment