-
Install dependencies:
nginx
,uwsgi
(python),flask
(python),github-flask
(python),numpy
(python),sep
(python),pillow
(python) -
Clone the repository to a useful location
-
Edit
findingchart.ini
to setuid =
your username -
Edit
findingchart.service
to point to setUser=
your usernameWorkingDirectory=
project location
-
Copy
findingchart.service
to/usr/lib/systemd/system/
-
Add user to the
nginx
group:sudo usermod -a -G <user> nginx
-
chmod g+x
each directory in the path to the project -
Enable and start the service
sudo systemctl start findingchart sudo systemctl enable findingchart
-
Create / update nginx config to include:
location /findingchart/static { alias <project path>/static; } location /findingchart/ { uwsgi_pass unix:<project path>/findingchart.sock; uwsgi_param SCRIPT_NAME /findingchart; include uwsgi_params; }
-
Enable and start the
nginx
service. -
Open the firewall if needed
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload`