I am deploying my web application to my server and everything works perfectly except I cannot find a way to get rid of the following error message below. Before deploying I have a development, and production.rb file in my log but when pushing to the server there is nothing there and I cannot create it. I have looked for other solutions but so far nothing has worked, How can I solve this error?
Rails Error: Unable to access log file. Please ensure that
/var/www/websites/public/appname/releases/20120608236602/log/production.log
exists and is chmod 0666. The log level has been raised to WARN and
the output directed to STDERR until the problem is fixed.
As that error message states, the logging process cannot access the log file. This would be due to the permissions on /var/www/websites/public/appname/releases/20120608236602/log
.
You can change the permissions on that dir with:
chmod -R 0666 /var/www/websites/public/appname/releases/20120608236602/log