【问题标题】:Redmine on Heroku: missing pluginsHeroku 上的 Redmine:缺少插件
【发布时间】:2016-12-29 15:05:48
【问题描述】:

我的插件工作正常并出现在本地,但是当我在 Heroku 上推送我的应用时,插件索引页面是空的并且没有插件...

按照here 的建议,我确实已经从.gitignore 中删除了所有内容,并且我还运行了heroku run rake redmine:plugins:migrate

我收到以下折旧警告,但我不知道它是否来自这里:

DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
Plugins in vendor/plugins (/app/vendor/plugins) are no longer allowed. Please, put your Redmine plugins in the `plugins` directory at the root of your Redmine directory (/app/plugins).

但是,我的插件已经包含在“插件”目录中,我现在有点不知道如何解决这个问题......

Rails v3.2.17 与 Redmine v2.5.1。

谢谢!

【问题讨论】:

    标签: ruby-on-rails heroku plugins redmine


    【解决方案1】:

    同时,我发现它可能与 git 子模块问题有关,因为 redmine_app_timesheets 文件夹存在,但在运行 'heroku run bash' 时发现它是空的。

    所以我删除了这两个文件夹并使用以下方法重新安装了插件:

    git submodule add https://github.com/maxrossello/redmine_app__space.git plugins/redmine_app__space
    git submodule add https://github.com/maxrossello/redmine_app_timesheets.git plugins/redmine_app_timesheets
    

    插件现在可以工作了,只是不确定删除本地插件可能会丢失什么配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-11
      • 1970-01-01
      • 1970-01-01
      • 2011-04-08
      • 1970-01-01
      • 2021-02-21
      • 1970-01-01
      相关资源
      最近更新 更多