Open edX安装Xblock
2015-12-04 16:20
701 查看
原文出处:http://wiki.edustack.org/
Like all platform settings, you can either write inside
update the platform to generate the custom settings files.
Or you can manually edit the custom settings, in
This will override the default value hardcoded in
Once the file is updated, you need to reboot to reload the settings.
To install a XBlock, you must download it, and then run the install script.
In some cases, rebooting is necessary to use the XBlock.
Go to
Select
Like all platform settings, you can either write inside
/edx/app/edx_ansible/server-vars.ymland
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 Settingsand set
advanced_modulesto
["xblockname"].
Use the XBlock in a unit
Select Advanced -> XBlock Namein your unit.
相关文章推荐
- windows下安装VMware-workstation10 linux
- 如何利用开源思想开发一个SEO友好型网站
- linux命令
- setsockopt()函数使用
- linux下编译gsoap+onvif
- Linux学习笔记(一)
- Target runtime Apache Tomcat 6.0 is not defined
- Linux 帮助命令
- Windows与Linux系统拷贝文件之pscp的使用
- centos下iptables相关设置笔记
- linux perm
- (F) linux sort,uniq,cut,wc命令详解
- NPM私有服务器架设 FOR CentOS
- linux mysql mysql.sock问题
- shell 使用
- 教您Photoshop中如何快速放大、缩小、移动图像
- -bash: brew: command not found
- linux学习笔记--2015-12-04
- BerkeleyX CS100.1x"Introduction to Big Data with Apache Spark"环境搭建
- Linux cp命令如何拷贝整个目录下所有文件