mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Updated Dev Setup: Linux (markdown)
parent
89fc7f07ae
commit
4e43c9f366
1 changed files with 45 additions and 2 deletions
|
@ -72,7 +72,7 @@ codecombat根目录下面的package.js的scripts脚本中postinstall在安装即
|
|||
删除,手动执行,但执行前要将bower及brunch进行全局安装
|
||||
|
||||
npm install -g bower --allow-root
|
||||
npm install -g brunch
|
||||
npm install -g brunch@1.8.5
|
||||
|
||||
ubuntu 14.04.4默认已经安装python2.7,所以可以不必再次安装
|
||||
|
||||
|
@ -171,4 +171,47 @@ apt-get install nodejs-legacy 默认安装的是0.X的版本,与codecombat环
|
|||
|
||||
echo -------------------------------------------------------------------------
|
||||
echo ----------ok!
|
||||
echo -------------------------------------------------------------------------
|
||||
echo -------------------------------------------------------------------------
|
||||
|
||||
如果搭建实验学习环境有任何疑问,欢迎邮件至 icodegame@blianw.com 交流,如果你是中国用户,也可以加入我们的QQ群:192252941 一起讨论。
|
||||
|
||||
网站加载缓慢的问题,是由于谷歌在国内被墙,所以导致无法访问,解决办法:编辑 app/assets/main.html第30行
|
||||
|
||||
<link href='//fonts.googleapis.com/css?family=Merriweather' rel='stylesheet' type='text/css'>
|
||||
替换为360CDN
|
||||
|
||||
<link href='//fonts.useso.com/css?family=Merriweather' rel='stylesheet' type='text/css'>
|
||||
|
||||
编辑 app/assets/main.html 第32至39行
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-39724129-1', 'auto');
|
||||
</script>
|
||||
|
||||
替换为(注释该代码块)
|
||||
|
||||
<!-- Google Analytics -->
|
||||
<!-- <script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-39724129-1', 'auto');
|
||||
</script> -->
|
||||
|
||||
编辑 app/styles/bootstrap/_bootswatch.scss中9、10、11行
|
||||
|
||||
@import url(//fonts.googleapis.com/css?family=Arvo:400,700);
|
||||
@import url(//fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=latin,latin-ext,cyrillic,vietnamese,cyrillic-ext,greek-ext,greek);
|
||||
@import url(//fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,latin-ext,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic);
|
||||
|
||||
替换为360CDN
|
||||
|
||||
@import url(//fonts.useso.com/css?family=Arvo:400,700);
|
||||
@import url(//fonts.useso.com/css?family=Open+Sans:400,300,700&subset=latin,latin-ext,cyrillic,vietnamese,cyrillic-ext,greek-ext,greek);
|
||||
@import url(//fonts.useso.com/css?family=Open+Sans+Condensed:700&subset=latin,latin-ext,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic);
|
Loading…
Reference in a new issue