在Google Cloud上部署应用程序时出现问题
所含内容与所报告的内容不符
在本地工作正常!我已经尝试使用command_path。所以我真的不知道下一步该怎么做...
这是我的模特
has_mongoid_attached_file :image,
:styles => { :large => "380x380!" , :medium => "240x240", :small => "120x120!" },
:storage => :fog,
:fog_public => true,
:fog_directory => 'XXXX',
:path => "images/:id/:style/:basename.:extension",
:fog_credentials => { :provider => 'Google',
:google_storage_access_key_id => 'XXXXX',
:google_storage_secret_access_key => 'XXXXX'}
validates_attachment_content_type :image, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
Run Code Online (Sandbox Code Playgroud)
感谢你付出的努力。我希望你们能帮助我
ruby google-app-engine ruby-on-rails paperclip paperclip-validation