palx

bundle exec rails console RAILS_ENV=production

Aug 20th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. alaveteli-usr@alaveteli:/var/www/alaveteli.myfoia.org/alaveteli$ bundle exec rails console RAILS_ENV=production
  2. DEPRECATION WARNING: Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead. (called from require at bin/rails:4)
  3. config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
  4.  
  5. * development - set it to false
  6. * test - set it to false (unless you use a tool that preloads your test environment)
  7. * production - set it to true
  8.  
  9. Traceback (most recent call last):
  10. 43: from bin/rails:4:in `<main>'
  11. 42: from bin/rails:4:in `require'
  12. 41: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<top (required)>'
  13. 40: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/command.rb:46:in `invoke'
  14. 39: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/command/base.rb:69:in `perform'
  15. 38: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
  16. 37: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
  17. 36: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
  18. 35: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/commands/console/console_command.rb:95:in `perform'
  19. 34: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
  20. 33: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/command/actions.rb:28:in `require_environment!'
  21. 32: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
  22. 31: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  23. 30: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
  24. 29: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
  25. 28: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
  26. 27: from /var/www/alaveteli.myfoia.org/alaveteli/config/environment.rb:5:in `<top (required)>'
  27. 26: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
  28. 25: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
  29. 24: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
  30. 23: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
  31. 22: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
  32. 21: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:347:in `call'
  33. 20: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:347:in `each'
  34. 19: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
  35. 18: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
  36. 17: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
  37. 16: from /home/alaveteli-usr/.rbenv/versions/2.5.8/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
  38. 15: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
  39. 14: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
  40. 13: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
  41. 12: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/railtie.rb:132:in `block in <class:Railtie>'
  42. 11: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
  43. 10: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
  44. 9: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
  45. 8: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
  46. 7: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
  47. 6: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
  48. 5: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activesupport-5.2.6/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
  49. 4: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/railtie.rb:136:in `block (2 levels) in <class:Railtie>'
  50. 3: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/connection_handling.rb:57:in `establish_connection'
  51. 2: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/connection_specification.rb:143:in `resolve'
  52. 1: from /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/connection_specification.rb:241:in `resolve_connection'
  53. /home/alaveteli-usr/bundle/ruby/2.5.0/gems/activerecord-5.2.6/lib/active_record/connection_adapters/connection_specification.rb:260:in `resolve_symbol_connection': 'RAILS_ENV=production' database is not configured. Available: ["default", "development", "test", "production"] (ActiveRecord::AdapterNotSpecified)
Advertisement
Add Comment
Please, Sign In to add comment