# How to make the gem installation in discourse-ai use the gem image source modified in web.china.template.yml?

**URL:** https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645
**Category:** Self-hosting
**Tags:** ai
**Created:** [October 29, 2023, 12:42am UTC](https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645 "2023-10-29T00:42:29Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![whitewaterdeu](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@whitewaterdeu](https://meta.discourse.org/u/whitewaterdeu)
#### Post date: [December 13, 2023, 7:27am UTC](https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645/6 "2023-12-13T07:27:19Z")

</div>

It’s best to switch to an overseas server Orz, domestic servers are all inaccessible

Like

> [@Long pause in standard installation of command : cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'](https://meta.discourse.org/t/long-pause-in-standard-installation-of-command-cd-var-www-discourse-su-discourse-c-bundle-install-retry-3-jobs-4/267142/2):
>
> well, it is indeed a network problem , because my server is in China I finde the resolutions, copy here in chinese 在国内环境下安装Discoursehttps://mypre.cn/2021/02/17/Discourcs-setup-on-cvm-ecs/ Discourse的版本升级与维护都是基于github来完成的，而Discourse本身又是基于ruby编写。 使用包括腾讯云的CVM、轻量服务器以及阿里云的ECS都存在国外网站访问慢的问题，主要是为了扶持国内git仓库做的限流操作。 在clone托管在github上的discourse时，可以通过将clone链接替换github.com为github.com.cnpmjs.org来加速对github的访问，比如： 将git clone https://github.com/discourse/discourse\_docker.git 替换为 git clone https://github.com.c…

> [@My server can access github, but docker can't](https://meta.discourse.org/t/my-server-can-access-github-but-docker-cant/267470):
>
> Hello guys, i am using a server in HongKong , i have tested that my server can get access to github root@cvm-3k8ngdw25i225:/var/discourse# wget https://github.com/discourse/discourse.git/ --2023-06-07 02:30:54-- https://github.com/discourse/discourse.git/ Resolving github.com (github.com)... 20.205.243.166 Connecting to github.com (github.com)|20.205.243.166|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://github.com/discourse/discourse/ [follo…

If you are in a hurry to build a website, time is more important than money. If you are not in a hurry, you can fiddle with it as you please.

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-the-gem-installation-in-discourse-ai-use-the-gem-image-source-modified-in-web-china-template-yml/288645)._
