There are times when we want to If you are making changes to UI strings or Help text in HTML templates, you can make edx-platform your working GIT directory in a running version of devstack our working GIT directory:
- To build the developers documentation, we must be running the LMS and Studio, so the documentation can successfully pull in docstrings from Python code.
- To edit UI strings in HTML templates and test immediately, we need to have the system running locally.
. When you make your changes you can verify them in your local devstack prior to making commits to the master branch of edx-platform.
- Install Devstack on your local system as described here.
- Complete steps through
vagrant up
. - In Git for Mac, clone the repository to the devstack directory. You are overwriting the edx-platform directory with the repository from github.
- Select your working branch and synch it.
- Continue with instructions to run devstack:
- If you have closed your connection, run
vagrant up
.
- Run
vagrant ssh
- ,
- then run
sudo su edxapp
- If you have closed your connection, run
- You can also edit UI text and refresh the page to see changes.
- Commit
- .
- To run Studio on devstack, run
paver devstack studio
To run LMS on devstack, runpaver devstack lms
- To edit UI text:
- Locate the file that you need to modify in Finder (for example, devstack/edx-platform/cms/templates/certificates.html)
- Make your changes and save the file.
- Verify your changes in a browser before committing the changes.
Open Studio:localhost:8001
Open LMS:localhost:8000
- If there are issues, make further changes in the files and refresh LMS or Studio in a browser to see the effects of each saved change.
- If the content renders correctly, commit and synch changes in Git as you would otherwise.