BUDA::lab Administrative Backend
$ git clone https://github.com/mbtronics/BAB.git <appdir>
$ cd <appdir>
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
Copy env.example to .env and fill in the variables:
If you choose development for FLASK_CONFIG, you need to fill in DEV_DATABASE_URL.
If you choose production for FLASK_CONFIG, you need to fill in DATABASE_URL.
It is best to create a seperate user with it's own database.
$ ./manage.py deploy
$ ./manage.py runserver
/etc/init/flaskapp.conf (replace
description "uWSGI server instance configured to serve flask app"
start on runlevel [2345]
stop on runlevel [!2345]
setuid www-data
setgid www-data
chdir <appdir>
exec uwsgi --ini uwsgi.ini --virtualenv <appdir>/venv
Start service:
$ service flaskapp restart
location /APP_URL_PREFIX {
include uwsgi_params;
uwsgi_pass unix:/tmp/flask_app.sock;
}