部署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

原文地址:https://www.cnblogs.com/or2-/p/7749644.html