Commit 4df4120c by Vik Paruchuri

Document install

parent 7bcc5e87
git clone git@github.com:MITx/analytics-experiments.git
cd analytics-experiments In order to install the minimal analytics-experiments repository:
sudo xargs -a apt-packages.txt apt-get install
sudo aptitude remove python-virtualenv python-pip First, decide on your directories:
sudo easy_install pip virtualenv * VIRTUALENV_DIR = directory where you create your python virtualenv.
git checkout vik/add-htsql * BASE_DIR = directory you start in before cloning the analytics repo. (so something like /home/bob)
pip install virtualenv * ANALYTICS_DIR = directory where the analytics-experiments repo is cloned. (so something like /home/bob/analytics-experiments/)
sudo mkdir /opt/edx
sudo chown CURRENT_USER /opt/edx Then, start to install:
virtualenv /opt/edx * git clone git@github.com:MITx/analytics-experiments.git
source /opt/edx/bin/activate * cd analytics-experiments (this is the ANALYTICS_DIR)
pip install -r requirements.txt * sudo xargs -a apt-packages.txt apt-get install
mkdir /opt/wwc/db * sudo aptitude remove python-virtualenv python-pip
cd anserv * sudo easy_install pip virtualenv
python manage.py syncdb --database=default --settings=settings * pip install virtualenv
python manage.py syncdb --database=local --settings=settings * mkdir VIRTUALENV_DIR
mkdir /opt/wwc/analytics-experiments/staticfiles * virtualenv VIRTUALENV_DIR
python manage.py collectstatic --settings=settings --noinput -c --pythonpath=. * source VIRTUALENV_DIR/bin/activate
* cd ANALYTICS_DIR
* pip install -r requirements.txt
* mkdir BASE_DIR/db
* cd ANALYTICS_DIR/anserv
* python manage.py syncdb --database=default --settings=settings (this may fail, but that is fine)
* python manage.py syncdb --database=local --settings=settings
* mkdir ANALYTICS_DIR/staticfiles
* python manage.py collectstatic --settings=settings --noinput -c --pythonpath=.
Then, run the server:
* python manage.py runserver 127.0.0.1:9022 --settings=settings --pythonpath=. --nostatic
* Navigate to 127.0.0.1:9022 in your browser, and you should see a login screen.
Then, create a user:
* cd ANALYTICS_DIR/anserv
* python manage.py shell --settings=settings
* from django.contrib.auth.models import User (run in the shell)
* user = User.objects.create_user("test","test@test.com","test") (run in the shell)
If you are using the aws settings (ie deploying):
* cd ANALYTICS_DIR/anserv
* python manage.py createcachetable django_cache --database=local
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