Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.18 KB

INSTALL.md

File metadata and controls

35 lines (32 loc) · 1.18 KB
Notes for deploying on CentOS 8
  1. Install dependencies: nginx, uwsgi (python), flask (python), github-flask (python), numpy (python), sep (python), pillow (python)

  2. Clone the repository to a useful location

  3. Edit findingchart.ini to set uid = your username

  4. Edit findingchart.service to point to set

    • User= your username
    • WorkingDirectory= project location
  5. Copy findingchart.service to /usr/lib/systemd/system/

  6. Add user to the nginx group: sudo usermod -a -G <user> nginx

  7. chmod g+x each directory in the path to the project

  8. Enable and start the service

    sudo systemctl start findingchart
    sudo systemctl enable findingchart
    
  9. 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;
     }
    
  10. Enable and start the nginx service.

  11. Open the firewall if needed

sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload`