-
Notifications
You must be signed in to change notification settings - Fork 6
Server Configuration and Setup
David Rodriguez edited this page Feb 11, 2025
·
6 revisions
- Python bokeh and javascript versions need to agree.
- Apache version 2.4.63
- python-3.11.11
If you redeploy the container you may need to re-do some/all of these steps.
The web app is installed in /var/www/webroot/ROOT
cd into ROOT Install the package dependencies:
pip install -r requirements.txt
In /etc/httpd/conf/httpd.conf add a line at the end:
WSGIApplicationGroup %{GLOBAL}
In /etc/httpd/conf.d/wsgi.conf confirm/update the lines:
WSGIScriptAlias / <your/path/to/simple>/simple_app.wsgi
Alias /static <your/path/to/simple>/simple_app/static
Alias /favicon.ico <your/path/to/simple>/simple_app/static/favicon.ico
In our case, <your/path/to/simple> is /var/www/webroot/ROOT/
In /var/www/webroot make some symlinks to address some hard-coded paths in the code:
ln -s ROOT/simple_app simple_app
ln -s ROOT/SIMPLE.sqlite .