From e7495df18f6808ccfd9090fc5bd60c9afbb1ba88 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Sat, 27 Aug 2011 14:08:16 -0700 Subject: [PATCH] install bin/manage.py wrapper script for django, remove console process type --- bin/compile | 13 +++++++++++-- bin/release | 3 +-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bin/compile b/bin/compile index abc2011..9e936db 100755 --- a/bin/compile +++ b/bin/compile @@ -33,14 +33,15 @@ done echo "-----> Preparing virtualenv version $(virtualenv --version)" virtualenv --no-site-packages . | sed -u 's/^/ /' -echo "-----> Byte-compiling code" -find . -name "*.py" | xargs bin/python -m py_compile +#echo "-----> Byte-compiling code" +find . -name "*.py" | grep -v bin/manage.py | xargs bin/python -m py_compile # if Django, inject psycopg and append settings if [ "$NAME" = "Python/Django" ]; then echo "-----> Django settings injection" SETTINGS_FILE=$(ls **/settings.py | head -1) + PROJECT=$(dirname $SETTINGS_FILE) echo " Injecting code into $SETTINGS_FILE to read from DATABASE_URL" cat >>$SETTINGS_FILE < Django script installation" + cat >bin/manage.py < Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')" diff --git a/bin/release b/bin/release index e75eaa6..e153a53 100755 --- a/bin/release +++ b/bin/release @@ -26,5 +26,4 @@ addons: default_process_types: web: bin/python $PROJECT/manage.py runserver 0.0.0.0:\$PORT --noreload - console: bin/python $PROJECT/manage.py shell -EOF \ No newline at end of file +EOF