-
Notifications
You must be signed in to change notification settings - Fork 0
Deploy :: Production
Matthew Sullivan edited this page Mar 6, 2020
·
10 revisions
Proxy URL
http://matthewsullivan.media/
Port number
8888
SSH
$ ssh [USER]@[SERVER_IP_ADDRESS]
Verify master
branch
$ git branch
Undo unstaged modifications
$ git checkout .
Fetch changes
$ git pull origin master
Install project dependencies
$ rm -rf package-lock.json && rm -rf node_modules && npm install
Build new app for deployment
$ npm run build
Update server credentials
$ vim ecosystem.config.js
Start application
$ pm2 start ecosystem.config.js --only production