Defy Install - DefyVentures/edx-platform GitHub Wiki

EC2 Install Instructions

Start with public AMI for us-east-1 ami-1af35972. Use t2.medium or larger instance.

Edit /edx/app/edx_ansible/server-vars.yml:

edx_platform_repo: "https://github.com/DefyVentures/edx-platform.git"
edx_platform_version: "defy/master"
# Other config here

Commands:

$ sudo rm -rf /edx/app/edxapp/edx-platform
$ sudo /edx/bin/update configuration release
$ sudo /edx/bin/update edx-platform defy/master
$ cd /edx/app/edx_ansible/edx_ansible/playbooks
$ sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local run_role.yml -e 'role=mongo' -e 'mongo_create_users=True'
$ cd /edx/app/edxapp/edx-platform
$ sudo -u www-data /edx/bin/python.edxapp manage.py lms syncdb --migrate --settings aws
$ sudo -u www-data /edx/bin/python.edxapp manage.py cms syncdb --migrate --settings aws
$ sudo -u www-data /edx/bin/python.edxapp manage.py lms createsuperuser --settings aws

Adapted from: https://github.com/edx/configuration/wiki/Single-AWS-server-installation-using-Amazon-Machine-Image

Devstack Install Instructions

We don't have a Vagrantfile for the DefyVentures fork of Open edX so you'll need to download the official Vagrantfile then specify the birch named release branch.

Once vagrant is up, configure the git repo to point to DefyVentures/edx-platform and switch to defy/master branch.

Edit the guest /etc/hosts so it can reach the lcms running on host:

learn.defy.org 10.0.2.2

Defy specific edX config is stored in /edx/app/edxapp/defy.env.json.