您的位置:首页 > 运维架构

Open edX安装Xblock

2015-12-04 16:20 701 查看
原文出处: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 XBlock
cd /edx/app/edxapp
# Download the XBlock
sudo -u edxapp git clone https://github.com/xxx/yourXBlock.git # If not installed: Install the XBlock
sudo -u edxapp /edx/bin/pip.edxapp install yourXBlock/
# Remove the installation files
sudo 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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: