Old steps (deprecated):

source opt/edx/bin/activate
sudo apt-get upgrade gcc
sudo pip install numpy
#in ml dir
sudo pip install -r requirements.txt
#in controller dir
sudo pip install -r requirements.txt
mkdir log in both repos
mkdir /opt/wwc/log
touch /opt/wwc/log/edx.log
sudo su makeitso
django-admin syncdb
django-admin migrate



sudo su makeitso
bash
source /opt/edx/bin/activate
cd /opt/wwc/grading-controller
pip install numpy
pip install -r requirements.txt
cd opt/wwc/machine-learning
pup install -r requirements.txt
python -m nltk.downloader maxent_treebank_pos_tagger wordnet
sudo mv /path/to/nltk_data /usr/share
sudo apt-get install aspell

python /opt/wwc/grading-controller/manage.py update_users

Copy auth.json and env.json into the grading-controller folder (no idea why this is needed, but django-admin doesn't find them at ENV_ROOT)
chown grading-controller/edx.log to makeitso

make db file (for sqlite)
chown db file to makeitso

For some reason, have to copy auth.json and env.json to both opt/wwc/grading-controller and opt/wwc/ dirs

sudo apt-get install super

pip install MySQL-python

In upstart files, be sure to specify settings file and full python path! (/opt/wwc/grading-controller)


How to run:
/opt/edx/bin/gunicorn --preload -b 127.0.0.1:8000 -w 4 --timeout=300 --pythonpath=/opt/wwc/grading-controller grading_controller.wsgi



Upstart tasks:

grader
ml_grader
ml_creator
pull_from_xqueue
expire_old




  "DATABASES": {
    "default": {
      "ENGINE": "django.db.backends.mysql",
      "NAME": "sandbox_grader",
      "USERNAME": "sandbox_grader",
      "PORT": "3306",
      "PASSWORD": "faarg16ren",
      "HOST": "sandbox.rds.edx.org"
    }
  },

