Commit 17045e42 authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Adapted config files to production environment

parent 3567e4d7
server {
listen 8080;
listen 80;
server_name server_domain_or_IP;
location / {
include proxy_params;
proxy_pass http://unix:/home/duque004/git/wsm.rest/wsm.rest.sock;
proxy_pass http://unix:/var/www/wsm.rest/wsm.rest.sock;
}
}
......@@ -3,11 +3,11 @@ Description=Gunicorn instance to World Soil Museum ReST API
After=network.target
[Service]
User=duque004
User=root
Group=www-data
WorkingDirectory=/home/duque004/git/wsm.rest
Environment="PATH=/home/duque004/git/wsm.rest/wsm.rest.env/bin"
ExecStart=/home/duque004/git/wsm.rest/wsm.rest.env/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app
WorkingDirectory=/var/www/wsm.rest
Environment="PATH=/usr/local/bin"
ExecStart=/usr/local/bin/gunicorn --workers 3 --bind unix:wsm.rest.sock -m 007 wsgi:app
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment