add some OpenShift scripts for a DIY gear

This commit is contained in:
David Gay 2013-06-05 14:39:06 -04:00
parent 1c2f1b0163
commit 77dd72e1b7
4 changed files with 21 additions and 1 deletions

2
.gitignore vendored
View File

@ -13,7 +13,7 @@ outreach/*
*.egg
*.egg-info
dist
build
build/
eggs
parts
bin

View File

@ -0,0 +1,12 @@
#!/bin/bash
export venv=$OPENSHIFT_DATA_DIR/venv
if [ -d $venv ] ; then
echo "Not rebuilding virtualenv."
else
virtualenv $venv
source $venv/bin/activate
fi
$venv/bin/python $OPENSHIFT_REPO_DIR/setup.py develop

View File

@ -0,0 +1,4 @@
#!/bin/bash
nohup $OPENSHIFT_DATA_DIR/venv/bin/pserve \
$OPENSHIFT_REPO_DIR/production.ini --reload

View File

@ -0,0 +1,4 @@
!#/bin/bash
kill `ps -ef | grep pserve | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
exit 0