Commit 639641a1 by Rocky Duan

Merge branch 'master' of github.com:MITx/mitx

parents 9189fae3 43cd2c21
...@@ -82,19 +82,22 @@ clone_repos() { ...@@ -82,19 +82,22 @@ clone_repos() {
fi fi
git clone git@github.com:MITx/askbot-devel >>$LOG git clone git@github.com:MITx/askbot-devel >>$LOG
fi fi
# By default, dev environments start with a copy of 6.002x
cd "$BASE" cd "$BASE"
if [[ -d "$BASE/data/.hg" ]]; then mkdir -p "$BASE/data"
output "Pulling data" REPO="content-mit-6002x"
cd "$BASE/data" if [[ -d "$BASE/data/$REPO/.git" ]]; then
hg pull >>$LOG output "Pulling $REPO"
hg update >>$LOG cd "$BASE/data/$REPO"
git pull >>$LOG
else else
output "Cloning data" output "Cloning $REPO"
if [[ -d "$BASE/data" ]]; then if [[ -d "$BASE/data/$REPO" ]]; then
mv "$BASE/data" "${BASE}/data.bak.$$" mv "$BASE/data/$REPO" "${BASE}/data/$REPO.bak.$$"
fi fi
hg clone ssh://hg-content@gp.mitx.mit.edu/data >>$LOG cd "$BASE/data"
git clone git@github.com:MITx/$REPO >>$LOG
fi fi
} }
...@@ -284,10 +287,14 @@ fi ...@@ -284,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