Commit 42fa0806 by Victor Shnayder

Fix paths in create-dev-env.sh

* need to be in mitx/ to install common/lib/*
* create data dir if it doesn't exit
* add a few more log messages
* Change url for our fork of django-pipeline to stop the hanging checkouts.
  It works either way on my machine, so not sure if this will fix it.
parent c6ca8ab6
...@@ -85,6 +85,7 @@ clone_repos() { ...@@ -85,6 +85,7 @@ clone_repos() {
# By default, dev environments start with a copy of 6.002x # By default, dev environments start with a copy of 6.002x
cd "$BASE" cd "$BASE"
mkdir -p "$BASE/data"
REPO="content-mit-6002x" REPO="content-mit-6002x"
if [[ -d "$BASE/data/$REPO/.git" ]]; then if [[ -d "$BASE/data/$REPO/.git" ]]; then
output "Pulling $REPO" output "Pulling $REPO"
...@@ -95,6 +96,7 @@ clone_repos() { ...@@ -95,6 +96,7 @@ clone_repos() {
if [[ -d "$BASE/data/$REPO" ]]; then if [[ -d "$BASE/data/$REPO" ]]; then
mv "$BASE/data/$REPO" "${BASE}/data/$REPO.bak.$$" mv "$BASE/data/$REPO" "${BASE}/data/$REPO.bak.$$"
fi fi
cd "$BASE/data"
git clone git@github.com:MITx/$REPO >>$LOG git clone git@github.com:MITx/$REPO >>$LOG
fi fi
} }
...@@ -285,10 +287,14 @@ fi ...@@ -285,10 +287,14 @@ fi
output "Installing askbot requirements" output "Installing askbot requirements"
pip install -r askbot-devel/askbot_requirements.txt >>$LOG pip install -r askbot-devel/askbot_requirements.txt >>$LOG
output "Installing askbot-dev requirements"
pip install -r askbot-devel/askbot_requirements_dev.txt >>$LOG pip install -r askbot-devel/askbot_requirements_dev.txt >>$LOG
output "Installing MITx requirements" output "Installing MITx pre-requirements"
pip install -r mitx/pre-requirements.txt >> $LOG pip install -r mitx/pre-requirements.txt >> $LOG
pip install -r mitx/requirements.txt >>$LOG # Need to be in the mitx dir to get the paths to local modules right
output "Installing MITx requirements"
cd mitx
pip install -r requirements.txt >>$LOG
mkdir "$BASE/log" || true mkdir "$BASE/log" || true
mkdir "$BASE/db" || true mkdir "$BASE/db" || true
......
...@@ -11,7 +11,7 @@ mako ...@@ -11,7 +11,7 @@ mako
python-memcached python-memcached
path.py path.py
django_debug_toolbar django_debug_toolbar
-e git+git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
django-staticfiles>=1.2.1 django-staticfiles>=1.2.1
fs fs
beautifulsoup beautifulsoup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment