# Falha ao executar \`launcher rebuild app\` para sempre, como posso substituir o GitHub por um espelho na China continental?

**URL:** <https://meta.discourse.org/t/failed-to-launcher-rebuild-app-for-always-how-can-i-replace-github-to-a-mainland-chinese-mirror/256248>\
**Category:** Self-hosting\
**Created:** [Fevereiro 25, 2023, 4:43pm UTC](https://meta.discourse.org/t/failed-to-launcher-rebuild-app-for-always-how-can-i-replace-github-to-a-mainland-chinese-mirror/256248 "2023-02-25T16:43:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![snakeninny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/snakeninny/32/115522_2.png) [@snakeninny](https://meta.discourse.org/u/snakeninny)\
**Post date:** [Fevereiro 25, 2023, 4:43pm UTC](https://meta.discourse.org/t/failed-to-launcher-rebuild-app-for-always-how-can-i-replace-github-to-a-mainland-chinese-mirror/256248/1 "2023-02-25T16:43:29Z")

</div>

Ao atualizar via `launcher rebuild app`, sempre recebo um erro como este:

```plaintext
...
I, [2023-02-25T16:34:01.790521 #1] INFO -- : 
> cd /var/www/discourse &amp;&amp; sudo -H -E -u discourse git clean -f
I, [2023-02-25T16:34:01.969445 #1] INFO -- : 
I, [2023-02-25T16:34:01.969665 #1] INFO -- : 
> cd /var/www/discourse &amp;&amp; sudo -H -E -u discourse git remote set-branches --add origin main
I, [2023-02-25T16:34:01.980319 #1] INFO -- : 
I, [2023-02-25T16:34:01.980423 #1] INFO -- : 
> cd /var/www/discourse &amp;&amp; sudo -H -E -u discourse git remote set-branches origin stable
I, [2023-02-25T16:34:01.991560 #1] INFO -- : 
I, [2023-02-25T16:34:01.991883 #1] INFO -- : 
> cd /var/www/discourse &amp;&amp; sudo -H -E -u discourse git fetch --depth 1 origin stable
fatal: unable to access 'https://github.com/discourse/discourse.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
...
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; sudo -H -E -u discourse git fetch --depth 1 origin stable failed with return #&lt;Process::Status: pid 144 exit 128&gt;
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["sudo -H -E -u discourse git reset --hard", "sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse git remote set-branches --add origin main", "sudo -H -E -u discourse git remote set-branches origin $version", "sudo -H -E -u discourse git fetch --depth 1 origin $version", "sudo -H -E -u discourse git checkout $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "[! -d public/plugins] || find public/plugins/ -maxdepth 1 -xtype l -delete)"]}
bootstrap failed with exit code 128
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
751de54716a7a145e5dc813d9b25330322dbcd69ec1a047d38267c86a57a990c

```

Acredito que o github foi banido na China continental, então preciso substituir `https://github.com` por um espelho CN como `https://hub.fgit.gq`.  
É possível e como posso fazer isso? Obrigado!

---

_[View the full topic](https://meta.discourse.org/t/failed-to-launcher-rebuild-app-for-always-how-can-i-replace-github-to-a-mainland-chinese-mirror/256248)._
