Docker Openedx devstack theming

和自甴很熟 提交于 2019-12-23 02:26:24

问题


How do I install and enable my custom theme in OpenEdx's docker based DevStack?

  • I use comprehensive theming
  • I use docker on Linux

回答1:


The LMS and CMS read many configuration settings from the container filesystem in the following locations:

/edx/app/edxapp/cms.env.json

/edx/app/edxapp/cms.auth.json

Since you are using docker DevStack, shell into LMS, CMS to find those files.

shell into LMS

make lms-shell

Shell into CMS

make studio-shell

You can create this directory at any location on a file system that is accessible to your Open edX installation. For example, you might place it at the root of the file system in a directory named /my-open-edx-themes.

Set the file permissions on the themes directory, and all of its subdirectories, to enable read+write permissions for the Ubuntu user.

sudo chown -R edxapp:edxapp /my-open-edx-themes
sudo chmod -R u+rw /my-open-edx-themes

For each Open edX component that you want to theme, set the

"ENABLE_COMPREHENSIVE_THEMING" = True

"DEFAULT_SITE_THEME": "Your-theme-name "

For LMS,

/edx/app/edxapp/lms.env.json

For Studio,

/edx/app/edxapp/cms.env.json

For the E-commerce,

/edx/etc/ecommerce.yml

And for each Open edX component that you want to apply a theme to, add the absolute path of the themes directory to the

COMPREHENSIVE_THEME_DIRS

configuration property.

For LMS and Studio,

"COMPREHENSIVE_THEME_DIRS": [
    "/my-open-edx-themes/edx-platform"
]

For the E-commerce,

COMPREHENSIVE_THEME_DIRS: ["/my-open-edx-themes/ecommerce"]

Finally, Restart all servers.

For more info, please follow this documentation.

http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/enable_themes.html

Add comments if you have any additional questions.



来源:https://stackoverflow.com/questions/51356691/docker-openedx-devstack-theming

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!