安装插件redmine_release_notes时出现rake aborted! Unknown database 'redmine_development'

本文详细介绍了在安装Redmine插件redmine_release_notes时遇到的数据库配置问题,包括如何通过修改配置文件和命令参数解决在执行迁移命令时出现的未知数据库错误。最终通过设置RAILS_ENV为'production'成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装插件redmine_release_notes遇到的问题

1、redmine_release_notes下载地址:https://github.com/hdgarrood/redmine_release_notes

2、安装环境: 本地redmine2.3.4

3、出现问题:

  •       按照下载地址上的安装步骤安装:

 Do the migrations.

rake redmine:plugins:migrate

Load the default formats (optional, recommended). If you've been using earlier versions, this will read your formats.yml and put them into the database (which is what you want).

rake redmine:plugins:release_notes:load_default_formats

Restart redmine.

  •       出现问题:在执行
    rake redmine:plugins:migrate命令时,出现rake aborted! Unknown database 'redmine_development'
  • 配置redmine_release_notes时出现如下现象


4、问题原因

    在config/database.yml中我们使用的是production数据库


5、解决办法

   在命令行中都加上RAILS_ENV=production,如下:

   rake db:migrate_plugins RAILS_ENV='production'

    RAILS_ENV=production rake redmine:plugins:release_notes:load_default_formats


最后,问题解决!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值