I'm getting a failure starting my app on Cedar. Rails 3.1.1. 

Here's the error log: 

----------------

2012-10-01T18:04:28+00:00 heroku[web.1]: Starting process with command 
`bundle exec rails server -p 16039`
2012-10-01T18:04:39+00:00 app[web.1]: 
/usr/local/lib/ruby/1.9.1/logger.rb:549:in `initialize': No such file or 
directory - /app/log/production.log (Errno::ENOENT)
2012-10-01T18:04:39+00:00 app[web.1]: from 
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/logger.rb:70:in
 
`initialize'
2012-10-01T18:04:39+00:00 app[web.1]: from /app/config/application.rb:45:in 
`<class:Application>'
2012-10-01T18:04:39+00:00 app[web.1]: from /app/config/application.rb:27:in 
`<module:AquaticKodiak>'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:275:in `new'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:549:in `create_logfile'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:544:in `open_logfile'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:549:in `open'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:499:in `initialize'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in 
`tap'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/usr/local/lib/ruby/1.9.1/logger.rb:275:in `initialize'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in 
`<top (required)>'
2012-10-01T18:04:39+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-10-01T18:04:39+00:00 app[web.1]: from /app/config/application.rb:45:in 
`new'
2012-10-01T18:04:39+00:00 app[web.1]: from /app/config/application.rb:16:in 
`<top (required)>'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:52:in 
`require'
2012-10-01T18:04:39+00:00 app[web.1]: from 
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:52:in 
`block in <top (required)>'

-------

Ok, so I figured the log wasn't being created so I added these lines to my 
application.rb: 

----
    Dir.mkdir(Rails.root.join('log', '')) unless 
File.directory?(Rails.root.join('log', ''))
    config.logger = Logger.new(Rails.root.join('log', "#{Rails.env}.log"), 
10, 30*1024*1024)
----

I can delete ./log (with recurse) and start my server up in production env 
and I will have a production.log file there. But when I upload to heroku I 
get the error log up above. I'm not sure what to do next. Suggestions? 

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to