$ pacman -Syu python-pip nginx uwsgi-plugin-python uwsgi
$ pip install flask
$ sudo mkdir -p /etc/nginx/sites-enabled
$ sudo mkdir -p /etc/uswgi/apps-available
$ sudo mkdir -p /var/www
- Editing configuration files
-
Editing /etc/nginx/nginx.conf & remove fonction server ()
-
Editing & add /etc/nginx/sites-enabled/appNginx.conf
-
Editing & add /etc/uwsgi/apps-available/appUwsgi.ini
-
Symlink creation root uwsgi
$ cd /etc/uwsgi
$ sudo ln -s /etc/uwsgi/apps-available/appUwsgi.ini appUwsgi.ini
- Python app creation
$ sudo nano /var/www/hello.py
- Configuration systemd & start service
$ sudo systemctl enable nginx
$ sudo systemctl start nginx
$ sudo systemctl enable uwsgi@appUwsgi
$ sudo systemctl start uwsgi@appUwsgi
Web testing IP local working if "Hello !" is in the screen
Hello!
Your file READMY is possible misspellings, under part "Directory uwsgi creation".
"/etc/usWgi/apps-available" -> /etc/uwSgi/apps-available