Skip to content

Instantly share code, notes, and snippets.

@A
Created August 30, 2014 13:45
Show Gist options
  • Select an option

  • Save A/03563f994aea009c4866 to your computer and use it in GitHub Desktop.

Select an option

Save A/03563f994aea009c4866 to your computer and use it in GitHub Desktop.
[root@12time ~]# cat ./start_node
#!/bin/bash
export NODE_ENV=development
export MONGODB=0.0.0.0/justchat-prod
export HOST=82.146.58.73
export PORT=800
export PWD=/www/project
supervisor /www/project/app.js
[root@12time ~]# ./start_node
Running node-supervisor with
program '/www/project/app.js'
--watch '.'
--extensions 'node,js'
--exec 'node'
Starting child process with 'node /www/project/app.js'
Watching directory '/root' for changes.
30 Aug 17:42:06 - init [project/app.js]
30 Aug 17:42:07 - info [project/app.js] Express listen undefined host and NaN port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment