Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created March 19, 2013 20:13
Show Gist options
  • Save fritz-gerneth/5199659 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/5199659 to your computer and use it in GitHub Desktop.
function start_app {
NODE_ENV=production nohup "node" "main.js" 1>>"main.log" 2>&1 &'
echo $! > "app.pid"
}
function stop_app {
kill `cat app.pid`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment