|
1 | 1 | node-cd |
2 | 2 | ======= |
3 | 3 |
|
4 | | -**Featherweight Github/Bitbucket Continuous Deployment** |
| 4 | +**Featherweight Github/Bitbucket/Contentful Continuous Deployment** |
5 | 5 |
|
6 | | -Continuously deploy any code from Github to your server. |
| 6 | +Continuously deploy any code from Github/Bitbucket/Contentful to your server. |
7 | 7 |
|
8 | | -node-cd is a simple node.js app handling Github's and Bitbucket's post-receive hooks. |
9 | | -It can execute any script you want on your server: deployment, testing, etc. |
| 8 | +node-cd is a simple node.js app handling Github's, Bitbucket's and Contentful's post-receive hooks. |
| 9 | +It can execute any script you want on your server: deployment, testing, etc. |
10 | 10 |
|
11 | 11 | ## Installation |
12 | 12 |
|
13 | 13 | git clone https://github.com/A21z/node-cd.git |
14 | | - cd node-cd/src |
15 | 14 | npm install |
16 | 15 |
|
17 | 16 | ## Usage |
18 | 17 |
|
19 | | -* `cp node-cd.template.sh node-cd.sh` |
20 | | -* Edit the `node-cd.sh` file to execute whatever you like after your commits (ex: stop server, git pull, start server) |
| 18 | +* Edit the `bitbucket.sh`, `contentful.sh` or `github.sh` file to execute whatever you like after your commits (ex: stop server, git pull, start server) |
21 | 19 | * **For GitHub**: Set your post-receive hook as described [here](https://help.github.com/articles/post-receive-hooks) with the url `http://yourserver.com:61440/github` |
22 | 20 | * **For Bitbucket**: Set your post-receive hook as described [here](https://confluence.atlassian.com/display/BITBUCKET/POST+hook+management) with the url `http://yourserver.com:61440/bitbucket` |
| 21 | +* **For Contentful**: Set your webhook in your Settings > Webhooks with the url `http://yourserver.com:61440/contentful` |
| 22 | +* Add execution permission on scripts |
| 23 | + `chmod +x bitbucket.sh contentful.sh github.sh` |
23 | 24 | * Run the app |
24 | | - `WWW_PORT=61440 node node-cd.js` |
| 25 | + `WWW_PORT=61440 node src/index.js` |
| 26 | + |
| 27 | +[](https://travis-ci.org/A21z/node-cd) |
0 commit comments