Simple Flask web app to automatically pull updates on a remote server. Inspired by Git-Auto-Deploy.
In scripts/
, whenever you push to GITHUB_REPO
, the bash script GITHUB_REPO.sh
will be run. For each GITHUB_REPO
you wish to use Ship Git with, you can create a new executable. Make sure the file has the correct permissions to run: chmod 755 GITHUB_REPO.sh
.
- Clone repository onto the server hosting your websites
- Create and activate python3 virtual environment
pip install -r requirements.txt
cp sample-config.json config.json
- Edit config file as needed
- Run the app using gunicorn
- Make sure the app is available through some URL
- Add the URL to the list of GitHub webhooks in your repository