-
Notifications
You must be signed in to change notification settings - Fork 6
Server Configuration and Setup
- 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 and 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 .
This will set up a cronjob to update the database on a regular schedule.
In a WebSSH session in Reclaim Cloud run crontab -e
There you will want to add
0 0 1 * * /var/www/webroot/ROOT/cronjob.sh
By default this may use vi, you will want to type i
to go into insert mode, add the line, press Esc and then type :wq
to save it.
You can confirm it's installed by typing crontab -l