Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

  1. Install Devstack on your local system as described here.
  2. Complete steps through vagrant up.
  3. In Git for Mac, clone the repository to the devstack directory. You are overwriting the edx-platform directory with the repository from github.
  4. Select your working branch and synch it.
  5. Continue with instructions to run devstack:
    1. If you have closed your connection, run vagrant up.
    You must use 
    1. Run vagrant ssh
     into the box
    1. ,
    then 
    1. then run sudo su edxapp
    , then build the developers doc to get the docstrings.
  6. You can also edit UI text and refresh the page to see changes.
  7. Commit
    1. .
  8. To run Studio on devstack, run paver devstack studio
    To run LMS on devstack, run paver devstack lms
  9. To edit UI text:
    1.  Locate the file that you need to modify in Finder (for example, devstack/edx-platform/cms/templates/certificates.html)
    2. Make your changes and save the file.
  10. Verify your changes in a browser before committing the changes.
    Open Studio: localhost:8001
    Open LMS: localhost:8000
  11. 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.
  12. If the content renders correctly, commit and synch changes in Git as you would otherwise.