Skip to content

thong-do/Web-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Web-info

Installation:

  • Run server with superuser: sudo -H -u edxapp bash
  • Load the virtual environment for user 'edxapp': source /edx/app/edxapp/edxapp_env
  • Switch to the Open edX theme directory: cd /edx/app/edxapp/edx-platform/themes
  • Create custom theme: mkdir my-theme
  • Navigate to my-theme: cd my-theme
  • Pull theme from github repo: git init -> git remote add origin https://github.com/minhthong176881/Web-info.git -> git pull origin master
  • Open other terminal with normal user and set permission for my-theme: sudo chmod -R 777 /edx/app/edxapp/edx-platform/themes/my-theme
  • Config lms.yml: nano /edx/etc/lms.yml
    • Set "ENABLE_COMPREHENSIVE_THEMING": true
    • Set "COMPREHENSIVE_THEME_DIRS": /edx/app/edxapp/edx-platform/themes
    • Set "DEFAULT_SITE_THEME": my-theme
  • Install debug-toolbar:
    • pip install django-debug-toolbar
    • pip install factory_boy
  • Update assets: cd /edx/app/edxapp/edx-platform/ -> paver update_assets
  • Restart edx instance:
    • /edx/bin/supervisorctl restart lms
    • /edx/bin/supervisorctl restart edxapp_worker:
  • Open browser and go to site: 192.168.56.10
  • Login with superuser account
  • Navigate to 192.168.56.10/admin
  • Look for Site themes and click Add
  • Click + button in site option, add site with domain name and display name are 192.168.56.10. Save and go back to Add site theme page
  • Set Theme dir name to my-theme and Save
  • Go to dashboard to see changes.

Usage:

  • Modify theme with the my-theme/lms/static/sass/_overrides.scss
  • Apply changes: navigate to /edx/app/edxapp/edx-platform/ and run paver update_assets --themes my-theme
  • To add more course: go to 192.168.56.10:18010

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published