Rails 3无法访问服务器上的日志文件

我正在将我的Web应用程序部署到我的服务器,一切正常,但我找不到办法摆脱下面的以下错误消息。 在部署之前,我在我的日志中有一个开发和生产.rb文件,但是当推送到服务器时,那里什么都没有,我无法创建它。 我已经寻找其他解决方案,但到目前为止没有任何工作,我该如何解决这个错误?

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. 

正如该错误消息所述,日志记录进程无法访问日志文件。 这可能是由于/var/www/websites/public/appname/releases/20120608236602/log

您可以使用以下命令更改该目录的权限:

 chmod -R 0666 /var/www/websites/public/appname/releases/20120608236602/log