- Clone the Repo.
git clone git@github.com:Simon-U/dash_example.git
- Move into the folder
cd dash_example
- Make a virtual enviroment
python3 -m venv env
- Activate the enviroment. On linux
source env/bin/activate
- Install the packages
pip install -r requirements.txt
- Start the application
gunicorn wsgi:app
- Stop the server with Ctrl + C
- Start again
gunicorn -w 2 wsgi:app
The restart currently needs to be done to first initialise the database. If multiple workers are started directly, they collide while initialising the database.