Skip to content

Deploy :: Production

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

Proxy server

Proxy URL

http://matthewsullivan.media/

Port number

8888

VPS

SSH

$ ssh [USER]@[SERVER_IP_ADDRESS]

Update

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

Build new app for deployment

$ npm run build

Server

Update server credentials

$ vim ecosystem.config.js

Start application

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