Files
POC-Java-www/README.md
2017-06-29 18:11:06 -05:00

33 lines
918 B
Markdown

# 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
```
5. Test the web server ```env/bin/pserve production.ini http_port=8080```
6. Install supervisor ```pip install supervisor```
7. Configure supervisor service
```sudo cp supervisord.service /etc/systemd/system/```
8. 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
```