Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
bin
node_modules
README.markdown
index.js
package.json

README.markdown

propagit

Cascading multi-server git deployment.

example

First start up a hub server to listen for git deploys:

$ propagit hub --port=6000 --secret=beepboop
control service listening on :6000
git service listening on :6001

then spin up as many drones as necessary on other machines with the command to run on deployment for each type of service:

$ propagit drone --hub=hubhost:6000 --secret=beepboop \
    -- node server.js 8085

Now you can git push to the hub and the drones will git fetch from the hub. Just do:

$ cd ~/projects/somerepo
$ git push http://hubhost:6001/somerepo master

To deploy the code, use the repo name and git commit hash of the version you want to deploy:

$ propagit deploy --hub=hubhost:6000 --secret=beepboop \
  somerepo ed56c6e85731d412fe22cf437cb63130afc34b07
Listening on :8085
^C

usage

Usage:
  propagit OPTIONS hub
    Create a server to coordinate drones.
    --port       port to listen on
    --secret     password to use
    --repodir    git repository directory

  propagit OPTIONS drone [COMMAND...]
    --hub        connect to the hub host:port
    --secret     password to use

  propagit OPTIONS deploy REPO COMMIT
    --hub        connect to the hub host:port
    --secret     password to use

install

With npm do:

npm install -g propagit