Skip to content

Instantly share code, notes, and snippets.

@javierwilson
Created March 30, 2012 18:21
Show Gist options
  • Save javierwilson/2253685 to your computer and use it in GitHub Desktop.
Save javierwilson/2253685 to your computer and use it in GitHub Desktop.
Script para ejecutar proyecto Django con gunicorn
#!/bin/sh
SITE_PATH=/var/www/example/; export SITE_PATH
USER=apache
#TCP=$HOSTNAME:8888
TCP=127.0.0.1:8888
runuser $USER -s /bin/bash -g $USER -c "/usr/bin/gunicorn_django -b ${TCP} -w 3 --max-requests=1000 ${SITE_PATH}settings 2>&1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment