# 2.6.0b2 升级非常慢

**URL:** <https://meta.discourse.org/t/2-6-0b2-upgrade-very-slow/161604>\
**Category:** Self-hosting\
**Created:** [2020年八月21日 00:58 UTC](https://meta.discourse.org/t/2-6-0b2-upgrade-very-slow/161604 "2020-08-21T00:58:18Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2020年八月21日 23:39 UTC](https://meta.discourse.org/t/2-6-0b2-upgrade-very-slow/161604/20 "2020-08-21T23:39:03Z")

</div>

> [@pfaffman](#):
>
> 如果有一种方法可以让 `./launcher` 在不修改 `app.yml` 的情况下将 `SKIP_POST_DEPLOYMENT_MIGRATIONS=1` 传递进去，那对不擅长编辑的人来说会更方便。

好主意，我已经实现了这个功能：

> <https://github.com/discourse/discourse_docker/pull/481>
>
> This will help self-hosters avoid longer downtime when a large post-deployment m…igration is pending.
> 
> Usage:
> 
> \`\`\`
> ./launcher rebuild app --skip-post-migrations
> ./launcher enter app
> SKIP\_POST\_DEPLOYMENT\_MIGRATIONS=0 rake db:migrate
> exit
> ./launcher restart app
> \`\`\`
> 
> (Note: the 'restart' clears the temporarily-set environment variable, so future web upgrades will correctly apply post-deployment migrations.)
> 
> https://meta.discourse.org/t/2-6-0b2-upgrade-very-slow/161604/19?u=riking

---

_[View the full topic](https://meta.discourse.org/t/2-6-0b2-upgrade-very-slow/161604)._
