Closed ghost closed 7 years ago
The nginx config has been placed in /usr/local/etc (in order to store it in a directory we can keep under version control) and has been configured to serve the static resources under /var/www/leverage.com/static/ from the /static/ URI.
AFAIK, no WSGI backend has been decided on or configured, so we'll obviously have to hold that discussion before I can configure nginx to serve requests to the application stack.
After discusing with @BayoAdejare, sounds like Gunicorn was initially chosen in order to satisfy a rapid deployment, but with more time on our hands it should be feasible to configure uWSGI for a more powerful backend instead.
Just noticed that nginx is running 4 worker processes... since we only have 1 CPU on the server, I dropped that down to 1.
Uploaded the configs to a new repository; uwsgi has been configured as of 273a60 and enabled via nginx config in f686a7.
You can now view the running application on the server by pointing your local hosts file to the server's IP address.
This item is ready for review
Final note-- uWSGI is currently configured to run 5 workers.. I configured that number as a "for now" value, which I presume we'll want to tune further before turning this app loose for the public.
This is long done
Since we run our own webserver, it could be worthwhile to use a modern, high-performance server.