在 Heroku 评论应用程序中启用 Heroku 实验室功能

bli*_*183 4 ruby-on-rails heroku

我有一个启用了评论应用程序的 Heroku 应用程序。审查应用程序是基于我的应用程序根目录中的 app.json 文件配置的。我可以添加插件,但似乎无法启用运行时动态元数据实验室功能。以下只是我尝试使其工作的众多方法之一......

{
  "name": "Foo",
  "scripts": {
    "postdeploy": "bundle exec rake db:migrate db:seed"
  },
  "formation": {
    "worker": {
      "quantity": 1
    },
    "web": {
      "quantity": 1
    }
  },
  "addons": [
    "heroku-postgresql",
    "heroku-redis",
  ],
  "labs": [
    "runtime-dyno-metadata"
  ],
  "buildpacks": [
    {
      "url": "https://github.com/heroku/heroku-buildpack-nodejs.git"
    },
    {
      "url": "https://github.com/heroku/heroku-buildpack-ruby.git"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

Dam*_*IEU 5

不支持在 app.json 中添加实验室功能。

  • 评论应用程序中是否有任何方法可以知道 Heroku 应用程序名称? (4认同)
  • 是:https://devcenter.heroku.com/articles/github-integration-review-apps#heroku_app_name-and-heroku_parent_app_name (4认同)