Deployement script for pianoforte.
- Python >= 3.6.x
Create a python virtualenv:
python -m venv venv
Then install the dependencies:
pip install -r requirements.txt
By default, it expects the pianoforte
source to be in pianoforte/
, but you
can change that by either: passing the --source-dir
option, setting the
SOURCE_DIR
environment variable or setting the source_dir
in the
config.
Note: the scripts are tested on Ubuntu 16.04 and 18.04 servers only.
The tile stack is run under the Unix user tilery
.
By default, the scripts try to deploy on a host named pfmae
. You can
override the host by using the --hostname
in any command.
python remote bootstrap
Set the SOURCE_DIR
env var pointing to the pianoforte folder (or pass it
to the command line as --source-dir
). Then:
python remote deploy
python remote download
This will run the import command in a screen.
python remote import
python remote create-index
python remote import-custom-data