Featherweight Github/Bitbucket/Contentful Continuous Deployment
Continuously deploy any code from Github to your server.
node-cd is a simple node.js app handling Github's and Bitbucket's post-receive hooks.
It can execute any script you want on your server: deployment, testing, etc.
Forked from https://github.com/A21z/node-cd to include Contentful, as well as to update the endpoint for Bitbucket
git clone https://github.com/signorekai/node-cd.git
cd node-cd/src
npm install
- Edit the
bitbucket.sh
,contentful.sh
orgithub.sh
file to execute whatever you like after your commits (ex: stop server, git pull, start server) - For GitHub: Set your post-receive hook as described here with the url
http://yourserver.com:61440/github
- For Bitbucket: Set your post-receive hook as described here with the url
http://yourserver.com:61440/bitbucket
- For Contentful: Set your webhook in your Settings > Webhooks with the url
http://yourserver.com:61440/contentful
- Run the app
WWW_PORT=61440 node index.js