A tool to automatically deploy staging environments on pull requests
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cfg
staging
wonderbot
.gitignore
README.md
manage.py
requirements.txt
uwsgi.ini

README.md

Wonderbot

How to set up the tool

Required packages:

  • nginx
  • uwsgi
  • redis
  • celery
  • postgresql

Create a staging user that owns the /staging folder.

Structure of the folder:

/staging
|-- log
|-- scripts
|   |-- copia_backup.sh
|   |-- postgres_start.sh
|   |-- postgres_stop.sh
|-- skeleton
|   |-- config
|   |   |-- api.cnf (this is not on gh)
|-- wonderbot (all wonderbot files)
|-- robots.txt

Crean old db version

/root
|-- scripts
|   |-- clean.sh

root crontab: 59 23 * * * root sh /root/scripts/clean.sh

nginix conf in staging.cnf