We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e25814 commit 226252eCopy full SHA for 226252e
templates/gunicorn/gunicorn.conf.erb
@@ -48,3 +48,16 @@ exec <% if scope.lookupvar('edx::newrelic::reporting') == true -%>$NEWRELIC run-
48
<% when 'python' -%>
49
exec su - www-data -c '<%= scope.lookupvar('virtualenv') %>/bin/python <%= scope.lookupvar('package_root') %>/<%= scope.lookupvar('script_name') %> >/dev/null 1>&1'
50
<% end -%>
51
+
52
+<% if (scope.lookupvar('stacked') == true) && (scope.lookupvar('title') != 'cms') -%>
53
+post-start script
54
+ while true
55
+ do
56
+ if $(curl -s -i localhost:$PORT/heartbeat | egrep -q '200 OK'); then
57
+ break;
58
+ else
59
+ sleep 1;
60
+ fi
61
+ done
62
+end script
63
+<% end -%>
0 commit comments