https://github.com/ssarcandy/node-deploy-tool
https://github.com/ssarcandy/node-deploy-tool
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ssarcandy/node-deploy-tool
- Owner: SSARCandy
- License: mit
- Created: 2016-04-07T15:13:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T01:35:12.000Z (about 10 years ago)
- Last Synced: 2025-11-13T21:06:29.036Z (8 months ago)
- Language: JavaScript
- Size: 604 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-deploy-script
## Requires
- git
- node v4
- pm2 (`npm install -g pm2`)
- forever (`npm install -g forever`)
## Setting up
1. `npm install`
2. start `deployBot.js` using `forever`, then done.
## Trigger the deploy event
The default trigger url is `http://yourdomain:3000/deploy/:appName/:branch`
###for example:
1. `POST` request send to `http://yourdomain:3000/deploy/helloworld/master`
2. deployBot will go to `helloworld` repository, checkout to `master` branch
3. then `git pull` to update code