Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated create-site.sh to work using a fixed install path instead of

/tmp
fixed production settings
  • Loading branch information...
commit 476b40e2472a08566cb474cffa95d6d2e8c847af 1 parent 01a0183
Harley Bussell authored
Showing with 14 additions and 26 deletions.
  1. +9 −25 create-site.sh
  2. +5 −1 website/production.py
View
34 create-site.sh
@@ -1,47 +1,31 @@
#!/bin/sh
-if [ ! -d "/tmp/pinax-satchmo-buildout" ]; then
- git clone git://github.com/hbussell/pinax-satchmo-buildout.git /tmp/pinax-satchmo-buildout
-fi
-#if [ ! -d "~/egg-cache" ]; then
-# mkdir ~/egg-cache
-#fi
-#if [ ! -d "~/egg-cache/download" ]; then
-# mkdir ~/egg-cache/download
-#fi
-#chmod ug+rwx -R ~/egg-cache
-# bring in sample project settings and templates
-# if you comment out this step a default project will be created by the djangorecipe.
+script=$0
+corepath=`dirname $script`
if [ ! -d "website" ]; then
- cp -R /tmp/pinax-satchmo-buildout/website/ .
+ cp -R $corepath/website/ .
fi
-if [ "buildout.cfg" ]; then
+if [ -f "buildout.cfg" ]; then
echo 'Backup buildout.cfg'
mv buildout.cfg buildout.tmp
fi
-
virtualenv --no-site-packages env
env/bin/easy_install zc.buildout
-
-
-# we should be able to install MySQL-python as an egg in buildout but it fails to find the distribution.
-env/bin/easy_install http://pypi.weblife.com.au/MySQL-python-1.2.3c1.tar.gz
-
env/bin/buildout init
-# remove the empty generated buildout.cfg
+# remove buildout.cfg generated by buildout init
rm buildout.cfg
-if [ "buildout.tmp" ]; then
- echo 'overwrite buildout.cfg from backup'
+if [ -f "buildout.tmp" ]; then
+ #echo 'overwrite buildout.cfg from backup'
mv buildout.tmp buildout.cfg
fi
if [ ! -f "buildout.cfg" ]; then
- echo 'bring in buildout.cfg from repo'
- cp /tmp/pinax-satchmo-buildout/buildout.cfg .
+ #echo 'bring in buildout.cfg from repo'
+ cp $corepath/buildout.cfg .
fi
bin/buildout
View
6 website/production.py
@@ -1 +1,5 @@
-from website.settings import *
+import os
+DEBUG=False
+DEBUG_TOOLBAR=False
+PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
+execfile(PROJECT_ROOT + '/settings.py')
Please sign in to comment.
Something went wrong with that request. Please try again.