Question
uwsgi: invalid option -- 'n' getopt_long() error
Hi, Iam stuck.
I am following a tutorial “Full stack full stack web application raspberry pi”
I am doing well, for a noob.
The pi is a zero w with rasbian lite stretch, installed nginx, postgresql, php7, python3, pip, flask,
installed uwsgi,
The tutorial states “`>cd /var/www/heating/
vim heating_nginx.conf”`
the code is
server {
listen
80;
server_name localhost;
charset
utf-8;
client_max_body_size 75M;
location /static {
root /var/www/heating/;
}
location / { try_files $uri @heating; }
location @heating {
include uwsgi_params;
uwsgi_pass unix:/var/www/heating/heating_uwsgi.sock;
}
}
You are configuring an app
and then create the link >ln -s /var/www/labapp/labapp_nginx.conf /etc/nginx/conf.d/
and then >vim /var/www/labapp/labapp_uwsgi.ini
[uwsgi]
#application’s base folder
base = /var/www/heating
#python module to import
app = hello
module = %(app)
home = %(base)/venv
pythonpath = %(base)
#socket file’s location
socket = /var/www/heating/%n.sock
#permissions for the socket file
chmod-socket
= 666
#the variable that holds a flask application inside the module imported at line #6
callable = app
#location of log files
logto = /var/log/uwsgi/%n.log
then the bit where it all goes wrong:
uwsgi —ini /var/www/heating/heating_uwsgi.ini
here I get the error message
uwsgi: invalid option – ‘n’ getopt_long() error
Can any body point me in the right direction
Kind regards
Paul
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×