Skip to content

Deploy :: Staging

Matthew Sullivan edited this page Mar 6, 2020 · 13 revisions

Proxy server

Proxy URL

http://staging.matthewsullivan.media/

Port number

8080

VPS

SSH

$ ssh [USER]@[SERVER_IP_ADDRESS]

Update

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

Build

Remove old build and build new app for deployment

$ rm -rf build/ && npm run build:staging

Server

Update server credentials

$ vim ecosystem.config.js

Start application

$ pm2 start ecosystem.config.js --only staging
Clone this wiki locally