Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Automatic Deploying Configuration

Nikz Jon edited this page Apr 28, 2015 · 1 revision

Automatic Deploying Configuration

Following commands are used to deploy

cd /srv/www/<domain_name>/subdomains/mko
git fetch --all
git reset --hard origin/master
npm install
pm2 restart app.js

Paste the above commands in a shell file. Eg: mko_deploy.sh

$ sudo chmod +x mko_deploy.sh

So when every you need to deploy the site, simply execute this file

$ ./mko_deploy.sh

Your site is updated as you execute above command.