We are using two Linodes to host our application: one for production and one for staging.
I would like to set it up so that when code is pushed to the development
branch of our Git repository, the code is automatically deployed to the staging server. And when code is pushed to the master
branch, that code is automatically deployed to our production server.
I've seen a couple of scripts similar to GitHubHook which use GitHub's Service Hooks feature, but I can't find any examples where master
and development
are deployed to different servers entirely (rather than just different subfolders of the same server).
What options are available to me? Any answer that can point me in the right direction would be greatly appreciated!
I can clarify the question if needed :)