My Rake tasks log to development just fine but when I go to run my app via Passenger nothing shows up in the log.
To answer a few common questions for people when this comes up:
I chmod 777 the log directory so access should not be an issue
My Passenger config is set to Development… at least I hope so
<VirtualHost *:80>
ServerAdmin blah@blah.blah
ServerName blah.blah.blah
DocumentRoot /var/www/qadashboard/public
<Directory /var/www/qadashboard/public>
Options Indexes FollowSymLinks -MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
RailsEnv development
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
RailsBaseURI /crbagenda
<Directory /var/www/crbagenda>
Options -MultiViews
</Directory>
</VirtualHost>
Here is my Gemfile
gem 'mysql'
gem 'rack-flash'
gem 'rest-client'
gem 'builder'
gem 'chronic', "0.6.4"
gem 'crack'
gem 'nokogiri'
gem 'jira4r'
gem 'prawn'
gem 'prawnto' #gem install may need to edit the date in rack-cache 1.0.3 gemspec
gem 'websnap'
gem 'whenever' #For cron jobs for the rake tasks
gem 'execjs'
gem 'therubyracer'
gem 'jquery-rails'
gem 'json'
group :development, :test do
gem 'rspec-rails'
gem 'rspec'
gem 'ruby-breakpoint'
gem 'ruby-debug'
end
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
What else can I add?
So… I rm -rf the log directory and then mkdir log… now it works. Probably would have been a lot easier if I had been using Capistrano on this and not just copied the folder structure over. Been on Windows too long. Sigh.