Skip to content

Instantly share code, notes, and snippets.

@josephmilla
Created June 6, 2015 19:49
Show Gist options
  • Save josephmilla/e566788e340e90994c13 to your computer and use it in GitHub Desktop.
Save josephmilla/e566788e340e90994c13 to your computer and use it in GitHub Desktop.
MEAN Setup
For my purposes I didn't use build dist because there was some confusion retrieving assets and such so I just stuck to development and kept things in the client folder
From there:
Use the FTP client of your choice to upload your angular-fullstack folder to /opt
In the terminal of your choice run: ssh root@your-digital-ocean-ip-address
cd into /opt/name-of-your-fullstack-project-folder
Then run node server/app.js
This will start up your server in development on port 9000.
To keep the server running:
Run these commands in order
In server/config/production.js change port from 8080 to 80
npm install forever -g
export NODE_ENV='production'
cd back into /opt/name-of-your-fullstack-project-folder
forever start server/app.js
You may already know many of these steps but I detailed it pretty much step by step to avoid any confusion, hope it helps!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment