码迷,mamicode.com
首页 > 移动开发 > 详细

platform cannot apply stanford theme

时间:2015-07-21 10:18:21      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:

Here are the steps to enable a custom theme using the manual method described here:

https://github.com/edx/edx-platform/wiki/Stanford-Theming

First create the base VM:

mkdir fullstack
cd fullstack
curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/fullstack/Vagrantfile > Vagrantfile
vagrant plugin install vagrant-hostsupdater
export OPENEDX_RELEASE="named-release/birch"
vagrant up

This might take awhile as the virtual box is downloaded. The key is exporting the OPENEDX_RELEASE environment variable. This specifically is installing the Birch named release. Over time, this will change. See more on named releases here:

https://github.com/edx/configuration/wiki/Named-Releases

Now, SSH into the VM and become the edxapp user:

vagrant ssh
sudo su edxapp
cd ~
source edxapp_env

Pull down the theme from github:

mkdir themes
cd themes
git clone https://github.com/Stanford-Online/edx-theme.git default

Configure edX to use the new theme:

cd /edx/app/edxapp
vi lms.env.json
change "USE_CUSTOM_THEME": false to "USE_CUSTOM_THEME": true
change "THEME_NAME": "", to "THEME_NAME": "default",
exit and save vi

Recompile the assets:

cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws

platform cannot apply stanford theme

标签:

原文地址:http://www.cnblogs.com/zhaojianwei/p/4663500.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!