未初始化的常量Devise(NameError)独角兽

时间:2019-05-09 17:54:33

标签: ruby-on-rails devise capistrano unicorn devise-token-auth

我将带有capistrano的rails应用程序部署到了digitalocean,并且在部署了新的宝石gem 'devise_token_auth', '1.0.0'之后,我在独角兽日志中遇到了一个奇怪的问题。吼叫

E, [2019-05-09T17:49:37.285001 #19550] ERROR -- : uninitialized constant Devise (NameError)
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
/home/deploy/www/smole-app-back/releases/20190509174241/config/initializers/devise.rb:1:in `<main>'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/home/deploy/www/smole-app-back/shared/bundle/ruby/2.5.0/gems/railties-

我在2013年link发现了同样的问题,但答案尚不清楚,有人可以帮我吗?

独角兽-5.5.0 捆绑器1.16.0 红宝石2.5.3

0 个答案:

没有答案