Bring in restart script. Make deploy snap-tool aware.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"start": "babel-node src/server.js",
|
||||
"start:prod": "NODE_ENV=production node dist/server.js",
|
||||
"build": "rm -rf dist && babel src -d dist -s",
|
||||
"deploy": "rsync -vr -e ssh --exclude-from .rsync-exclude * ubuntu@gs-1:deighton-ar-server/ && ssh ubuntu@gs-1 'cd deighton-ar-server && npm install'",
|
||||
"deploy": "rsync -vr -e ssh --exclude-from .rsync-exclude * $SNAP_DEPLOY_USER@$SNAP_DEPLOY_HOST:deighton-ar-server/ && ssh $SNAP_DEPLOY_USER@$SNAP_DEPLOYHOST 'cd deighton-ar-server && npm install & sudo ./ops restart & sudo ./ops --test restart'",
|
||||
"test": "jest",
|
||||
"actor:api": "monzilla 'src/api/**/*.js:src/database/**/*.js' -- babel-node src/api/index.js",
|
||||
"actor:api:debug": "babel-node --inspect-brk src/api/index.js",
|
||||
|
||||
Reference in New Issue
Block a user