ruby on rails Errno::EACCES Permission denied @ rb_sysopen - product.log -
def show name = @product.productname file.open('product.log', 'a+') |f2| f2.write time.new f2.write "==>" end
it works fine on local machine (mac) , error comes when deploy on ubuntu
server (ec2 )
try file.open("#{rails.root}/product.log", 'a+') |f2|
if @ root, or whatever path is.
if still doesn't work try changing permission 775.
Comments
Post a Comment