-
Notifications
You must be signed in to change notification settings - Fork 2
No way to configure application if using WSGI #26
Comments
Yea currently you have to write your own wsgi entry point and pass in a config file, which isn't necessarily difficult but it does take some extra steps. I'll send over some examples of a uwsgi server config. Do you think it would be useful to ship with a run wsgi server option? |
Passing a config file might be fine. The use case here is for CHORD; I'm writing a script which automatically installs multiple microservices using |
Do you have an example configuration you are using for other uWSGI apps? Are you running uWSGI in emperor mode or does each app have it's own master? It might be that you have to pass in a predefined config file? |
I can pregenerate a config file using the python scripts I use to construct the container's file structure. I'm using uWSGI in emperor mode, and I only started the project on Friday so this is the first microservice I'm working with. |
(i do generate uwsgi ini files on the fly using the python scripts) |
Most of the configuration / setup occurs in the
main()
function ofapp.py
. If WSGI is used, there doesn't seem to be an easy way to initialize the database, set up logging, set up the db teardown, etc.The text was updated successfully, but these errors were encountered: