Install poetry and run poetry install
within the base directory. This will create a new virtual environment and install all the needed dependencies.
Once the environment has been setup, run poetry run pre-commit install
to add the git hooks.
In order to properly host, you must fill out src/app/config/private.yml
Run docker-compose -f docker-compose.dev.yml up --build
This will build the docker image and start hosting on port 8080
by default. Using this compose file will also enable uwsgi's debugging and auto-reloading of changed application files.
Create a new directory on your target system and run curl -L deploy.beestation13.buzz/website | bash
within that directory. Doing so will download the necessary files and prepare the docker environment.
See setup.sh
for the actual installation steps.
For direct development hosting, simply run src/wsgi.py
For production hosting, use uwsgi
to serve server-conf/beesite_uwsgi.ini
to a socket file beesite_uwsgi.sock
.
You will need to either use nginx (recommended) or apache to read and serve from the uwsgi socket.