Run BYCEPS¶
Important
Before continuing, make sure that the virtual environment is set up and activated.
Applications¶
To run the applications defined in the application mapping file with Flask’s (insecure!) development server for development purposes:
(.venv)$ BYCEPS_CONFIG=../config/development.toml BYCEPS_APPS_CONFIG=config/apps.toml flask --app=serve_apps --debug run
If the hostname mapping (or DNS setup) is also correct, the configured BYCEPS applications should be accessible at their respective hostnames on Flask’s standard port (5000), for example:
Worker¶
The worker processes background jobs for the admin application and site applications.
To start it:
(.venv)$ BYCEPS_CONFIG=../config/development.toml ./worker.py
It should start processing any jobs in the queue right away and will then wait for new jobs to be enqueued.
While technically multiple workers could be employed, a single one is usually sufficient.