1. 把xblock从 github仓库clone到edx机器,将所有者设为edxapp
git clone https://github.com/Heaven1881/mooc-ExerciseMdf.git
sudo chown -R edxapp:edxapp mooc-ExerciseMdf
2. 把exercisemdf/static/index.html 文件中的iframe的src改为你的edx 域名
<iframe src="http://crl.ptopenlab.com:8811/static/exercisemdf/index.html" frameBorder=0 id="exercisemdf" width="100%" height="1000px" ></iframe>
改为
<iframe src="http://cherry.cs.tsinghua.edu.cn/static/exercisemdf/index.html" frameBorder=0 id="exercisemdf" width="100%" height="1000px" ></iframe>
3. 安装xblock
cd mooc-ExerciseMdf
sudo -u edxapp /edx/bin/pip.edxapp install .
4. 在文件夹/edx/var/edxapp/staticfiles/下新建文件夹exercisemdf/,并将文件夹staticfiles/下的文件夹拷贝到/edx/var/edxapp/staticfiles/中,同时增加所有人对其