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