我有一个运行在Apache / Passenger的CentOS上的Rails应用程序,我有一个小问题:我没有任何我的Rails应用程序的日志,我错过了什么?
这是我的apache conf:
<VirtualHost *:80> ServerAdmin [email protected] ServerName domain.com ServerAlias www.domain.com Include /home/ftpanel/conf/alias/domain.com.alias DocumentRoot /home/mgimmo/public_html/immo/public/ #Configuration PHP FastCgiExternalServer /home/mgimmo/ftpanel-config/php5.fpm -socket /home/ftpanel/conf/sock/mgimmo.sock Alias /ftpanel-config/ /home/mgimmo/ftpanel-config/ <Directory /home/mgimmo/public_html/immo/public/> Options -Indexes FollowSymLinks -MultiViews AllowOverride All </Directory> ServerSignature Off
应用程序日志在通常的应用程序根目录下的日志目录中。
在你的情况下,完整path是/home/mgimmo/public_html/immo/log/production.log
确保该文件可由Web服务器用户写入。