Skip to content

Server Configuration and Setup

David Rodriguez edited this page Feb 11, 2025 · 6 revisions

Config features

  • Python bokeh and javascript versions need to agree.

Current Config (Feb 2025)

  • Apache version 2.4.63
  • python-3.11.11

Reclaim Cloud Setup instructions

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 .

Cronjob Setup Instructions

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

Clone this wiki locally