Reading/Web/Setting up a node app

From MediaWiki.org
< Reading‎ | Web
Jump to navigation Jump to search
sudo npm install forever -g
  • Set the default node port to 8080. Add this to ~/.profile
    export PORT=8080
    
  • Run the app forever:
    > screen
    > forever app.js > mylog.log &
    [ctrl+a+d]