Skip to content

Instantly share code, notes, and snippets.

@primaryobjects
Last active August 29, 2015 14:16
Show Gist options
  • Save primaryobjects/ecce2511b5f44d1cda6d to your computer and use it in GitHub Desktop.
Save primaryobjects/ecce2511b5f44d1cda6d to your computer and use it in GitHub Desktop.
4 easy steps to deploy a node.js web site to a Windows server.
1. Download and install node.js at http://nodejs.org/download/
2. Copy your node.js project files to C:\Users\YOUR_USERNAME\Documents\SITENAME
3. Open Windows Firewall port 80.
4. Open Windows Powershell and type:
$env:PORT = 80
cd C:\Users\YOUR_USERNAME\Documents\SITENAME
npm install
node app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment