Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Super Simple Auto-Deployment server

Project description


Pullboy is a VERY simple server that listens for incoming connections and deploys projects according to a predefined script.


First we install pullboy. pip install pullboy or the preferred one pipenv install pullboy. Second we write the deploy config file. An example would be:

    workdir: '~/pullboy'
        - git pull origin master
        - make
    token: 'thisisnosecret'
    active: true  # This is optional. Default is assumed to be true

For Gitlab you can add push events in the webhooks and pullboy will take care of auto deploy for you. Here we don't really need a project name so we can have a config like so:

    workdir: '~/pullboy'
        - git pull origin master
        - make
    active: true
    branch: master
    gitlab: true

We can now add a gitlab webhook which has the secret token as a_token_for_gitlab_to_identify_the_script. That's all there is to it. Now whenever someone pushes to the repo and it's the master branch. the script will be executed.

Now we run pullboy with the following command pullboy config.yaml.

That's it.


To make pullboy deploy something all you need to do is hit with the items project and token in the POST body. For this activity HTTPS is recommended.

Tokens are meant to be kept a secret otherwise anyone with access to this URL can deploy the code (we don't want it to be that simple do we?). An example cURL command to deploy the project shown in the config above would be:

curl -X POST -F project=pullboy -F token=thisisnosecret
curl -X POST -F project=pullboy -F token=thisisnosecret
curl -X POST -F project=pullboy -F token=thisisnosecret
curl -X POST -F project=pullboy -F token=thisisnosecret
curl -X POST -F project=pullboy -F token=thisisnosecret

The url does not matter, whatever URL you access, pullboy will be ready to work. This makes it easy to use with a reverse proxy like Nginx where you can forward a url like /pullboy/deployments/ci and /pullboy/deployments/manual to Pullboy. The Nginx logs can act as logs for deployments.

Let's Encrypt is the recommended way to obtain HTTPS but in case you are using your laptop for something, ngrok is a neat way to get HTTPS.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pullboy, version 0.91
Filename, size File type Python version Upload date Hashes
Filename, size pullboy-0.91-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pullboy-0.91.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page