-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix signal send for Gunicorn instead of for Apache #3794
Conversation
doc/developer/debugging.rst
Outdated
@@ -85,7 +85,7 @@ Edit a file in a running apache WSGI container | |||
|
|||
docker-compose exec geoportal bash | |||
vi ... | |||
kill -s USR1 1 # graceful | |||
kill -s HUP `ps aux|grep gunicorn|head --lines=1|awk '{print $2}'` # graceful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, the title is wrong...
Why don't you suggest to put gunicorn in devel mode (the --reload option) instead?
doc/developer/debugging.rst
Outdated
@@ -78,14 +78,20 @@ Actually we display the running rule and why she is running (dependence update). | |||
Docker | |||
------ | |||
|
|||
Edit a file in a running apache WSGI container | |||
Run gunicorn to reload on modified python file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... to reload on modifications of python files
doc/developer/debugging.rst
Outdated
.............................................. | ||
|
||
Add the following environement variable to the geoportal container: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment
doc/developer/debugging.rst
Outdated
|
||
``GUNICORN_PARAMS="-b :80 --worker-class gthread --threads 1 --workers 1 --reload"`` | ||
|
||
Gaceful the running geoportl container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do a graceful restart of the running geoportal container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed :-)
No description provided.