sv-gunicorn-run.erb 328 B

12345678910
  1. #!/bin/bash
  2. # TODO make this more WSGI generic
  3. GUNICORN=<%= @options['virtualenv'] %>/bin/gunicorn_django
  4. ROOT=<%= @options['app']['deploy_to'] %>/current
  5. CONFIG=/etc/gunicorn/<%= @options['app']['id'] %>.py
  6. cd $ROOT
  7. exec 2>&1
  8. exec chpst -u <%= @options['app']['owner'] %>:<%= @options['app']['group'] %> $GUNICORN -c $CONFIG