Tips & TroubleSoot
MacOSX 에 기본적으로 설치된 apache2 에서는 정상적으로 동작하지 않는 문제가 있다. port 등으로 다시 설치하는 편이 좋겠다.
- sudo passenger-install-apache2-module --with-apxs2=/opt/local/apache2/bin/apxs
Passenger 설치후 레일스가 정상적으로 뜨지 않고 /tmp/mysql.sock 파일을 찾을 때?
- sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
- or
- config/datatabase.yml 파일에 다음과 같이 추가해도 됨
- socket: /var/run/mysqld/mysqld.sock
Rotate Logs Setting
/etc/logrotate.d/rails:
-
/var/www/apps/rubyonrailsworkshops.com/shared/log/production.log {
daily
rotate 7
compress
missingok
sharedscripts
postrotate
touch /var/www/apps/rubyonrailsworkshops.com/current/tmp/restart.txt
endscript
}
References
- Configuration Passenger with Ubuntu 710
- Rails Deployment with Apache and mod_rails on Ubuntu 7.10
- Using Passenger on OSX for Rails development
- passenger google code
- Ask your doctor about mod_rails
(0)
(
