# 来自 Gitpod 的问候！（在 Google Cloud 上安装 + 自动化开发环境配置）

**URL:** <https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783>\
**Category:** Self-hosting\
**Created:** [2019年九月17日 11:54 UTC](https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783 "2019-09-17T11:54:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2019年九月17日 15:39 UTC](https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783/7 "2019-09-17T15:39:00Z")

</div>

@sam 看起来 [FIX: Rails 6 multisite migrations and plugin migrations · discourse/discourse@025d4ee · GitHub](https://github.com/discourse/discourse/commit/025d4ee91f4727540c749e2162680e1042c34376) 这个提交破坏了一些功能。

与提交信息相反，我认为在此提交之前插件迁移是正常工作的。但现在不行了。无论是否提供 `LOAD_PLUGINS=1`，在我的开发环境中插件迁移都不会运行。

我认为问题出在这里：

```diff
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -516,7 +516,7 @@ class Plugin::Instance
     Rake.add_rakelib(File.dirname(path) + "/lib/tasks")
 
     # Automatically include migrations
- migration_paths = Rails.configuration.paths["db/migrate"]
+ migration_paths = ActiveRecord::Migrator.migrations_paths
     migration_paths << File.dirname(path) + "/db/migrate"
 
     unless Discourse.skip_post_deployment_migrations?

```

---

_[View the full topic](https://meta.discourse.org/t/hello-from-gitpod-installing-on-google-cloud-automated-dev-setup/128783)._
