Home >Web Front-end >HTML Tutorial >openedx online font problem_html/css_WEB-ITnose

openedx online font problem_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:02:491275browse

After installing openedx, access is extremely slow. The reason is that fonts.googleapis.com is blocked in the country.

So I changed it to a 360 mirror, hoping it can be used in the long run. Main modifications:

1.

cd /edx/app/edxapp/edx-platform/lms/static/sass/base

sudo vi _font_face.scss

2.

cd /edx/app/edxapp/edx-platform/cms/static/sass/assets

sudo vi _fonts.scss

3.

cd /edx/app/edxapp/edx-platform/common/static/css

sudo vi tinymce-studio-content-fonts. css

4.

cd /edx/app/edxapp/edx-platform/lms/static/maintenance

sudo vi index.html

Replace fonts.googleapis.com with fonts.useso.com.

To operate vi, use Baidu.

After modification, recompile.

Compile assets manually
To compile javascript and css outside of the update script run the following commands:
? sudo -H -u edxapp bash
? source / edx/app/edxapp/edxapp_env
? cd /edx/app/edxapp/edx-platform
? paver update_assets cms --settings=aws
? paver update_assets lms --settings=aws

Done.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn