提问者:小点点

Heroku上的Redmine:缺少插件


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

我已经从我的. gitignore中删除了所有内容,正如这里建议的那样,我还运行了heroku run rake redmine:plugins:迁移

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

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).

但是,我的插件已经包含在“插件”目录中,我现在有点被困在如何解决这个问题上……

带有Redmine v2.5.1的Rails v3.2.17。

谢谢!


共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

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