tofi86 / redmine_maintenance_mode

Plugin to prevent users from using Redmine while system operations are being done.
MIT License
22 stars 16 forks source link

Unknown database 'redmine_development' #16

Open zen-zla opened 5 years ago

zen-zla commented 5 years ago

Hi ######## Environment: Redmine version: 4.0.4.stable Ruby version : 2.6.3-p62 (2019-04-16) [x86_64-linux] Rails version : 5.2.3 Environment : production Database adapter: Mysql2 Mailer queue : ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery : sendmail SCM: Subversion : 1.7.14 Git: 1.8.3.1

Redmine plugins: redmine_ldap_sync : 2.2.0 redmine_stealth: 0.7.4 ########

When I use : rake redmine:plugins

I Have error rake aborted! ActiveRecord::NoDatabaseError: Unknown database 'redmine_development'

solution ?

Thank's

tofi86 commented 5 years ago

You don#t even have my plugin redmine_maintenance_mode installed. Or does this error appear when you try to install it?

If so, who told you to run rake redmine:plugins? The README file says:

You have to run the plugin rake task to provide the assets (from the Redmine root directory): $ rake redmine:plugins:migrate RAILS_ENV=production

If you ran this task and the error is unknown database, I think you misconfigured your database configuration in config/database.yml

Did you blindly ran the command from above (for PRODUCTION environment) without having specified a production database? Probably you need to run it for rails env development?