相关疑难解决方法(0)

Rails:无法访问日志文件

重新启动我的rails应用程序时出现以下错误.我以前遇到过这个问题,在另一个服务器上有另一个应用程序,但不记得是什么问题,或者我是如何解决它的.

Rails Error: Unable to access log file. Please ensure that /apps/staging/releases/20090310162127/log/staging.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.
Run Code Online (Sandbox Code Playgroud)

我正在Ubuntu上部署到带有capistrano的杂种群集.

当我做 ls -l /apps/staging/releases/20090310162127/log/staging.log

结果是:

-rw-rw-rw- 1 me grp 51 Mar 10 16:07 /apps/staging/releases/20090310162127/log/staging.log
Run Code Online (Sandbox Code Playgroud)

日志目录是link/ apps/staging/shared/log.

这是怎么回事?

linux mongrel capistrano ruby-on-rails

14
推荐指数
1
解决办法
9653
查看次数

标签 统计

capistrano ×1

linux ×1

mongrel ×1

ruby-on-rails ×1