Skip to content

Commit

Permalink
scripts for managing things
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed May 16, 2010
1 parent 294e9d5 commit a75ef1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/env
@@ -0,0 +1,7 @@
#!/bin/bash
DOMAIN="oebfare.com"
PROJECT="oebfare_project"
ROOT="${HOME}/webapps/${DOMAIN}"
PROJECT_ROOT="${ROOT}/${PROJECT}"
SERVER_ROOT="${ROOT}/oebland"
VENV_ROOT="${HOME}/virtualenvs/${DOMAIN}"
6 changes: 6 additions & 0 deletions bin/start-app
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
. env
GUNICORN_OPTS="--daemon --name=${DOMAIN} --pid=${SERVER_ROOT}/run/gunicorn.pid unix:${SERVER_ROOT}/run/gunicorn.sock"

(cd $PROJECT_ROOT && $VENV_ROOT/bin/python manage.py run_gunicorn $GUNICORN_OPTS)

0 comments on commit a75ef1c

Please sign in to comment.