Open edX安装Xblock

来源:互联网 发布:专业装修淘宝多少钱 编辑:程序博客网 时间:2024/05/16 08:51

原文出处:http://wiki.edustack.org/ http://wiki.edustack.org/ http://wiki.edustack.org/

Like all platform settings, you can either write inside/edx/app/edx_ansible/server-vars.yml and update the platform to generate the custom settings files.

EDXAPP_FEATURES:    ALLOW_ALL_ADVANCED_COMPONENTS: true

Or you can manually edit the custom settings, in /edx/app/edxapp/cms.env.json.

This will override the default value hardcoded in /edx/app/edxapp/edx-platform/cms/envs/common.py.

Once the file is updated, you need to reboot to reload the settings.

sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:

Install an XBlock

To install a XBlock, you must download it, and then run the install script.

# Move to the folder where you want to download the XBlockcd /edx/app/edxapp# Download the XBlocksudo -u edxapp git clone https://github.com/xxx/yourXBlock.git# If not installed: Install the XBlocksudo -u edxapp /edx/bin/pip.edxapp install yourXBlock/# Remove the installation filessudo rm -r yourXBlock

Reboot if something isn't right

In some cases, rebooting is necessary to use the XBlock.

sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:
Activate the XBlock in your course

Go to Settings -> Advanced Settings and set advanced_modules to ["xblockname"].

Use the XBlock in a unit

Select Advanced -> XBlock Name in your unit.


0 0
原创粉丝点击