jeudi 19 avril 2018

bundle exec rake db:migrate /var/lib/gems/2.4.0/gems/json_web_token-0.3.5/lib/json_web_token.rb:36:

Hi for years I have used this website in overcoming many issues. Recently, i decided to setup Catarse and found it to be an uphill battle. Stackflow was the first place i came and though alittle of the issue was discussed, it wasnt on point.I am currently experiencing this issue and cant seem to find any solution. I searched google etc Thanks:

bundle exec rake db:migrate /var/lib/gems/2.4.0/gems/json_web_token-0.3.5/lib/json_web_token.rb:36: warning: already initialized constant JWT /var/lib/gems/2.4.0/gems/jwt-1.5.6/lib/jwt/json.rb:4: warning: previous definition of JWT was here rake aborted! ActiveRecord::AdapterNotSpecified: 'postgresql' database is not configured. Available: ["development", "adapter", "encoding", "database", "pool", "username", "password", "host", "port", "test"] /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:248:in resolve_symbol_connection' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:231:inresolve_string_connection' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:213:in resolve_connection' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:139:inresolve' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:151:in block in resolve_all' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:150:ineach' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:150:in resolve_all' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_handling.rb:69:inresolve' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/core.rb:46:in configurations=' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/railtie.rb:119:inblock (2 levels) in ' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:38:in instance_eval' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:38:inexecute_hook' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:28:in block in on_load' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:27:ineach' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/lazy_load_hooks.rb:27:in on_load' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/railtie.rb:118:inblock in ' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:in instance_exec' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:30:inrun' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:55:in block in run_initializers' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/initializable.rb:54:inrun_initializers' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:352:in initialize!' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:inpublic_send' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in method_missing' /home/wizard/railsApps/catarse/config/environment.rb:9:in' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:inblock in require' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in load_dependency' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:inrequire' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:328:in require_environment!' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:457:inblock in run_tasks_blocks' /var/lib/gems/2.4.0/gems/rake-12.3.1/exe/rake:27:in `' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)

Aucun commentaire:

Enregistrer un commentaire