Skip to content

Commit

Permalink
Run mod_wsgi in a daemon process instead of embedded mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
slagle committed Jun 29, 2012
1 parent 7a3f0c7 commit 90e275b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cartridges/python-2.6/info/bin/deploy_httpd_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ CustomLog "|/usr/sbin/rotatelogs $PYCART_INSTANCE_DIR/logs/access_log$rotatelogs
Options -MultiViews
</Directory>
WSGIProcessGroup $application
WSGIApplicationGroup $application
WSGIDaemonProcess $application user=$uuid group=$uuid processes=1 threads=5 display-name=%{GROUP} python-path="$OPENSHIFT_REPO_DIR/libs:$OPENSHIFT_REPO_DIR/wsgi:$PYCART_INSTANCE_DIR/virtenv/lib/python2.6/"
WSGIImportScript "$OPENSHIFT_REPO_DIR/wsgi/application" process-group=$application application-group=$application
WSGIScriptAlias / "$OPENSHIFT_REPO_DIR/wsgi/application"
Alias /static "$OPENSHIFT_REPO_DIR/wsgi/static/"
WSGIPythonPath "$OPENSHIFT_REPO_DIR/libs:$OPENSHIFT_REPO_DIR/wsgi:$PYCART_INSTANCE_DIR/virtenv/lib/python2.6/"
Expand Down

0 comments on commit 90e275b

Please sign in to comment.