Deploy with Fabric
- all commands are idempotent
- custom configuration file should be inspired by
fabfile/france.fabric.ymland must be passed to each command with the
One command to rule-them-all
fab --echo --hosts=root@ip --config=fabfile/your-config.yml bootstrap deploy reload
It will install addok, load data from
data_uri and expose it through
Custom addok settings file path for your instance.
Link to a bziped JSON file to be loaded.
Domain name for your service.
List of Python packages to be installed as addok plugins.
Additional data to be loaded as a list of JSON objects.
true if you want to avoid installing/running nginx.
Start with that command to update the system, install dependencies and create approriated user and folders.
Create the virtualenv and update pip.
Load custom settings from your local file referenced as
in the configuration file.
Install configuration for uwsgi and nginx.
Retrieve the file referenced as
data_uri in the configuration
file and unbzip it.
Load the previously fetched file plus optional data from the configuration file.
fetch, stop uwsgi, reset addok database(s), run
batch and restart
Install addok and all plugins referenced as
plugins in the
Restart uwsgi and nginx.
Bzip and download settings, sqlite and redis database files.
The downloaded file will be named like
Use files previously backuped locally with the
and launch a
Do not forget to use the appropriated configuration file when you run
an addok command afterward.