The builder module is responsible for building new subscribie sites.
- When a new site is created (via /start-building) , all the data to build that site (in yaml) is sent to the builder module which builds a new subscribie site
- Each site is defined in a yaml file, and a clone of the Subscribie repo
- Each site runs as a uwsgi 'vassal' which allows new sites to come online without having to restart the web server
- Create a directory for subscribie modules e.g
mkdir ~/subscribie-modules - Clone this repo into that folder
git clone git@github.com:Subscribie/module-builder.git - In your Subscribie repo
.envfile setMODULES_PATHequal to your subscribie modules directry. e.g. "MODULES_PATH="/home/sam/subscribie-modules/" - In your subscribie database (e.g. data.db) insert "
builder" into the modules tableINSERT INTO module (name) VALUES ('builder');this will cause Subscribie to attemp importing themodule-builderinto Subscribie. Module builder is a flask blueprint. - Make sure your
- Restart subscribie Subscribie repo
.envfileTHEME_NAMEis set toTHEME_NAME=builder