部署rails遇到问题

Posted 学者先要会疑

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了部署rails遇到问题相关的知识,希望对你有一定的参考价值。

 

 

underfined method for has_attched_file when installing paperclip

解决

create the file paperclip.rb inside the config/initializers/paperclip.rb

Add the below lines and restart the server

require "paperclip/railtie"

Paperclip::Railtie.insert

 

2 NoMethodError: undefined method `devise‘ for User (call ‘User.connection‘ to establish a connection):Class

解决

extend Devise::Models

 

3 deploy error: ExecJS::ProgramError: SyntaxError: Unexpected token: name (autoRegisterNamespace)

解决

使用 var 替换js文件中的let

 

以上是关于部署rails遇到问题的主要内容,如果未能解决你的问题,请参考以下文章