diff --git a/flashy.ini b/flashy.ini new file mode 100644 index 0000000..53aed0a --- /dev/null +++ b/flashy.ini @@ -0,0 +1,22 @@ +# mysite_uwsgi.ini file +[uwsgi] + +# Django-related settings +# the base directory (full path) +chdir = /srv/flashy-backend +# Django's wsgi file +module = flashy.wsgi +# the virtualenv (full path) +home = /srv/flashy-backend/venv/ + +# process-related settings +# master +master = true +# maximum number of worker processes +processes = 10 +# the socket (use the full path to be safe +socket = /srv/flashy-backend/flashy.sock +# ... with appropriate permissions - may be needed +# chmod-socket = 664 +# clear environment on exit +vacuum = true diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index 194e6dd..c350936 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -1,5 +1,6 @@ upstream backend_production { - server localhost:7001; + server unix:///srv/flashy-backend/flashy.sock +# server localhost:7001; } server {