Henry Pump POC Web Interface

Installation

  1. Install nginx, Python 2&3 & venv with sudo apt-get install nginx python python-pip python3 python3-venv python3-pip

  2. Cd into the pocwww directory, run python3 -m venv env to create the virtual environment.

  3. Update the install of pip env/bin/pip install --upgrade pip setuptools

  4. Install the python module env/bin/pip install .

  5. Generate HTTPS keys

chmod +x generate_keys.sh
./generate_keys.sh
  1. Test the web server env/bin/pserve production.ini http_port=8080

  2. Install supervisor pip install supervisor

  3. Configure supervisor service sudo cp supervisord.service /etc/systemd/system/

  4. Configure nginx

sudo cp poc.conf /etc/nginx/sites-available/
sudo rm /etc/nginx/sites/enabled/default
sudo ln -s /etc/nginx/sites-available/poc.conf /etc/nginx/sites-enabled/
sudo service nginx restart
Description
No description provided
Readme 119 KiB
Languages
Jinja 40.8%
Python 33.4%
JavaScript 20.1%
CSS 5%
Dockerfile 0.5%
Other 0.2%