platform cannot apply stanford theme

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

转载于:https://www.cnblogs.com/zhaojianwei/p/4663500.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值