Hacking Open edX Devstack
Required tools to run Open edX Devstack:
- Vagrant
- VirtualBox
- NFS Client, if not Devstack will uses VirtualBox Guest Editions.
Preparing:
Download and Install Required tools before.
Create working directory
1 | mkdir devstack |
Download devstack
1 | curl -L https://raw.github.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile |
sets value of OPENEDX_RELEASE environment
1 | export OPENEDX_RELEASE="named-release/dogwood" |
Run instalation
1 | vagrant up |
Play with Devstack
Login to devstack:
1 | vagrant ssh |
To use devstack and perform any of the tasks described in this section, connect as the user edxapp.
1 | sudo su edxapp |
Run the LMS on Devstack
To run the LMS on devstack, follow these steps.
Login to Devstack machine
vagrant ssh sudo su edxapp
Run the following command
paver devstack lms
Or, to start the LMS without updating requirements and compiling assets, use
thefast
option.paver devstack lms --fast
The LMS starts.
Open the LMS in your browser at
http://localhost:8000/
.Vagrant forwards port 8000 to the LMS server running in the virtual machine.
Run Studio on Devstack
To run Studio on devstack, follow these steps.
Login to Devstack machine
vagrant ssh sudo su edxapp
Run the following command.
paver devstack studio
Or, to start Studio without updating requirements and compiling assets, use
thefast
option.paver devstack studio --fast
Studio starts.
Open Studio in your browser at
http://localhost:8001/
.Vagrant forwards port 8001 to the Studio server running in the virtual
machine.
View Available Studio Commands
To view all available commands for Studio, enter the following command.
1 | ./manage.py cms -h --settings=devstack |
Run Discussion Forums on Devstack
To run discussion forums on devstack, follow these steps.
Login to Devstack machine
vagrant ssh sudo su edxapp
Switch to the discussion forum account by entering the following command.
sudo su forum
Update Ruby requirements.
bundle install
Start the discussion forums server.
ruby app.rb -p 18080
The discussions forum server starts. You can access the discussion forums API
at http://localhost:18080/
.