ruby on rails - Paperclip: Permission denied error -


paperclip works fine on localhost, on deployed app, returns following error when try update avatar:

errno::eacces in userscontroller#update permission denied - /rails_apps/website/releases/20150807211111/public/system/users/avatars/000/000/562 

this line in users controller getting singled out:

if @user.update_attributes(user_params) 

this in user model:

has_attached_file :avatar, :styles => { :full => "400x720" }, :processors => [:cropper] validates_attachment_content_type :avatar, :content_type => /\aimage\/.*\z/ 

my server uses ubuntu 10.04.4 lts.

what error mean , how can fix it?

this seems problem file permissions , not ruby on rails. try run following command in terminal logged in user runs web server:

chmod -r +w /rails_apps/website/releases/20150807211111/public 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -