- Add a sample rc script (courtesy by Thomas Kurschel) that only requires www/py-gunicorn to run via the EXAMPLES option.
- It's a more lightweight variant and doesn't require sysutils/py-supervisor to run.
- poudriere -> OK
- Script has been tested several weeks in production -> OK
The script is not added via USE_RC_SUBR to avoid additional dependencies on www/py-gunicorn and the goal in mind to let the user choose which solution (rc script, sysutils/py-supervisor, etc.) suits best for their needs.
Another variant that comes into mind would be to add a non-default option, e.g. GUNICORN, which installs then the rc script and www/py-gunicorn. I'm also open for adding the script via USE_RC_SUBR if this makes more sense.
What do you think about it?
Add some OPTIONS to allow the user to choose between different WSGI servers? Similarly to how eg. www/rt44 allows choosing between several different ways of running a perl-based web application.
Thank you for the pointer to www/rt44. I can introduce some more WSGI servers but I haven't tested other alternatives than Gunicorn, yet. If you already used an other WSGI server than Gunicorn together with NetBox in test/production environment I'll be happy to add it as an additional option.