Closed mrPsycho closed 10 years ago
This issue is probably occurring due to incorrect database configuration. Can you provide us the command which you are using to start server and to execute migrations so that we can identify the environment.
i did it like you wrote on README:
4.Run nohup rake jobs:work & fails
You need to execute "rake jobs:work" under production environment like "nohup rake jobs:work RAILS_ENV=production &".
Regarding rake, "Rake is Ruby Make, a standalone Ruby utility that replaces the Unix utility 'make'". For detailed description of rake task you can refer :- http://stackoverflow.com/questions/18737696/what-is-rake-and-how-it-is-used-in-rails.
To execute rake task you can use this command:-
For sending reminder emails for pending leaves:- "rake systango_hrm:send_reminder_email_for_pending_leaves RAILS_ENV=production" For recalculating leaves:- "rake systango_hrm:recalculate_leaves_on_holiday_calender_update RAILS_ENV=production"
Also we have updated README file for the same.
Great! Thanks!
Hello!
i tried to check new version, and now in nohup.out i see this:
rake aborted! database configuration does not specify adapter /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in'
Tasks: TOP => jobs:work => jobs:environment_options => environment
(See full trace by running task with --trace)
resolve_hash_connection' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in
resolve_string_connection' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:inspec' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in
establish_connection' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/railtie.rb:88:inblock (2 levels) in <class:Railtie>' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:36:in
instance_eval' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:36:inexecute_hook' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:26:in
block in on_load' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:25:ineach' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:25:in
on_load' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-3.2.19/lib/active_record/railtie.rb:80:inblock in <class:Railtie>' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/initializable.rb:30:in
instance_exec' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/initializable.rb:30:inrun' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/initializable.rb:55:in
block in run_initializers' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/initializable.rb:54:ineach' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/initializable.rb:54:in
run_initializers' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/application.rb:136:ininitialize!' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in
method_missing' /home/redmine/redmine/config/environment.rb:14:in<top (required)>' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in
require' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:inblock in require' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in
load_dependency' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:inrequire' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/application.rb:103:in
require_environment!' /home/redmine/.rvm/gems/ruby-2.0.0-p451/gems/railties-3.2.19/lib/rails/application.rb:305:inblock (2 levels) in initialize_tasks' /home/redmine/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in
eval' /home/redmine/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `all migrations done successfully.