Last active
January 4, 2016 17:19
-
-
Save fanweixiao/8653197 to your computer and use it in GitHub Desktop.
Rapid dev & deploy to server over ssh by using [mina](https://npmjs.org/package/mina)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"server": "[email protected]", | |
"server_dir": "/srv/qr.xxx.com", | |
"repo": "[email protected]:fanweixiao/xxxx.git", | |
"branch": "release", | |
"history_releases_count": 3, | |
"shared_dirs": [ | |
"node_modules", | |
"public/bower_components" | |
], | |
"prerun": [ | |
"npm stop", | |
"npm install --production", | |
"bower install --allow-root", | |
"sed -i 's/dev.xxx.com\\/r/r.xxx.com/g' public/scripts/services.js", | |
"grunt --force" | |
], | |
"run_cmd": "npm start" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "xxxx.com", | |
"version": "0.0.1", | |
"description": "XXXXXX", | |
"main": "xxx.js", | |
"scripts": { | |
"test": "DEBUG=*,-connect:*,-send supervisor -w xxx.js,route,lib -n exit xxx.js", | |
"start": "NODE_ENV=production forever --minUptime=1000 --spinSleepTime=1000 start /srv/qr.xxx.com/current/xxx.js || true", | |
"stop": "forever stop /srv/qr.xxx.com/current/xxx.js || true", | |
"deploy": "MINA_CONFIG=support/deploy.json mina deploy" | |
}, | |
"dependencies": { | |
"debug": "~0.7.4", | |
"lodash": "~2.4.1", | |
"express": "~3.4.6", | |
"bufferhelper": "~0.2.0", | |
"ejs": "~0.8.5", | |
"xml2js": "~0.4.0", | |
"request": "~2.30.0", | |
"cli-color": "~0.2.3", | |
"redis": "~0.10.0", | |
"async": "~0.2.9", | |
"hiredis": "~0.1.15", | |
"weibo": "~0.6.10", | |
"qr": "~0.2.3", | |
"q": "~1.0.0", | |
"socket.io": "~0.9.16", | |
"grunt": "~0.4.2", | |
"grunt-cache-bust": "~0.1.1", | |
"grunt-contrib-jshint": "~0.8.0", | |
"grunt-contrib-uglify": "~0.3.1" | |
}, | |
"devDependencies": { | |
"dox": "", | |
"jade": "~1.0.0", | |
"mocha": "~1.16.2", | |
"should": "~2.1.1", | |
"coffee-script": "~1.6.3" | |
}, | |
"readmeFilename": "README.md" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment