-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up staging to use sentry tracing for performance
- Loading branch information
1 parent
5f2a879
commit d2f669f
Showing
7 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# supervisor can only control processes it started itself. | ||
# So we need to use exec to replace the parent shell script process | ||
# that starts pipenv | ||
exec python -m pipenv run gunicorn greenweb.wsgi -b {{ internal_ip }}:$PORT -t 300 -c gunicorn.conf.py --statsd-host=10.0.0.2:9125 --statsd-prefix=member.app | ||
exec python -m pipenv run gunicorn greenweb.wsgi -b {{ internal_ip }}:{{ gunicorn_port }} -t 300 -c gunicorn.conf.py --statsd-host=10.0.0.2:9125 --statsd-prefix=member.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
# {{ ansible_managed }} | ||
# Last run: {{ template_run_date }} | ||
|
||
[supervisord] | ||
environment=LC_ALL='en_US.UTF-8',LANG='en_US.UTF-8' | ||
|
||
[program:{{ supervisor_gunicorn_app }}] | ||
directory=/var/www/{{ tgwf_domain_name }}.thegreenwebfoundation.org/current/ | ||
numprocs=1 | ||
command=bash ./run_gunicorn.sh | ||
process_name=%(process_num)02d | ||
environment=PORT=90%(process_num)02d | ||
autostart=true | ||
autorestart=true | ||
stopsignal=QUIT | ||
user={{ supervisor_user }} | ||
|
||
stdout_logfile=%(program_name)s_%(process_num)02d_.log | ||
stderr_logfile=%(program_name)s_%(process_num)02d_.error.log |