summaryrefslogtreecommitdiff
path: root/setup.sh
blob: 80bbcf377fc9a80f5f9d6d807c6b3a273ea9da57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eux

BLOGNAME=unixster

virtualenv --no-site-packages $BLOGNAME-env
cd $BLOGNAME-env
./bin/pip install django==1.8.4
./bin/django-admin startproject $BLOGNAME
./bin/pip install django-blog-zinnia
cp ../source/settings.py ./$BLOGNAME/$BLOGNAME/settings.py
cp ../source/urls.py ./$BLOGNAME/$BLOGNAME/urls.py
cd $BLOGNAME
../bin/python manage.py syncdb
cd ../..
sed -i "s/BLOGNAME=/BLOGNAME=$BLOGNAME/g" start.sh
echo "Setup complete."