Skip to content

Commit

Permalink
new installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
d1ffuz0r committed Aug 12, 2012
1 parent 1453a5a commit 82ccea7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bootstrap.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,12 +1,20 @@
#!/bin/sh #!/bin/sh


PROJECT_NAME=$1 PROJECT_NAME=$1
PATH_TO_TEMPLATE=https://github.com/d1ffuz0r/djrails/zipball/master REPO=git://github.com/d1ffuz0r/djrails.git

if [ ! -d djrails ]; then
git clone git://github.com/d1ffuz0r/djrails.git
fi;


if [ ! -d $PROJECT_NAME ]; then if [ ! -d $PROJECT_NAME ]; then
django-admin.py startproject --template $PATH_TO_TEMPLATE --extension py,md,txt $PROJECT_NAME -v 2 django-admin.py startproject --template ./djrails/project_name $PROJECT_NAME -v 2
echo "project $PROJECT_NAME was created" echo "project $PROJECT_NAME was created"
pip install -r $PROJECT_NAME/pipfile.txt pip install -r $PROJECT_NAME/pipfile.txt
else else
echo "project $PROJECT_NAME already exists" echo "project $PROJECT_NAME already exists"
fi; fi;

if [ -d djrails ]; then
rm -rf djrails
fi;

0 comments on commit 82ccea7

Please sign in to comment.