Henry Pump POC Web Interface
Installation
-
Install nginx, Python 2&3 & venv with
sudo apt-get install nginx python python-pip python3 python3-venv python3-pip -
Cd into the pocwww directory, run
python3 -m venv envto create the virtual environment. -
Update the install of pip
env/bin/pip install --upgrade pip setuptools -
Install the python module
env/bin/pip install . -
Generate HTTPS keys
chmod +x generate_keys.sh
./generate_keys.sh
-
Test the web server
env/bin/pserve production.ini http_port=8080 -
Install supervisor
pip install supervisor -
Configure supervisor service
sudo cp supervisord.service /etc/systemd/system/ -
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
Languages
Jinja
40.8%
Python
33.4%
JavaScript
20.1%
CSS
5%
Dockerfile
0.5%
Other
0.2%