forked from agileworks-tw/sails-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
16 lines (13 loc) · 699 Bytes
/
Makefile
File metadata and controls
16 lines (13 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
deploy-production-docker:
- ssh jenkins@localhost docker rm -f sails_sample_prod
ssh jenkins@localhost docker run -d --name sails_sample_prod -p 8800:1337 agileworks/sails_sample_prod
deploy-production-legacy:
ssh jenkins@localhost mkdir -p ~/deploy/production
scp sailsSampleProd.tar.gz jenkins@localhost:~/deploy/production
tar -C ~/deploy/production/ -vxf ~/deploy/production/sailsSampleProd.tar.gz
package-production:
- rm sailsSampleProd.tar.gz
tar cvf ./sailsSampleProd.tar.gz ./
restart-production:
- ssh jenkins@localhost cd ~/deploy/production && pm2 delete production
ssh jenkins@localhost cd ~/deploy/production && NODE_ENV=production pm2 start -f app.js --name 'production'