开发者

Heroku app crashes on startup

开发者 https://www.devze.com 2023-03-15 21:17 出处:网络
Today, I created a copy of a working app, which runs perfectly on Heroku, and tried to deploy it on Heroku as a starting point for a new project.

Today, I created a copy of a working app, which runs perfectly on Heroku, and tried to deploy it on Heroku as a starting point for a new project.

I added the new folder as a git repository, created a new remote repository on GitHub, edited the config file and gave new names to the databases, created the new databases and tried to deploy on Heroku.

When I try this the app crashes and from the remote logs I can see this:

2011-06-27T12:45:28+00:00 heroku[web.1]: Starting process with command: `thin -p 29758 -e production -R /home/heroku_rack/heroku.ru start`
2011-06-27T12:45:32+00:00 app[web.1]: /app/config/routes.rb:42:in `block in <top (required)>': undefined local variab开发者_如何学Gole or method `id' for main:Object (NameError)
2011-06-27T12:45:32+00:00 app[web.1]:   from /app/.gems/gems/actionpack-2.3.6/lib/action_controller/routing/route_set.rb:227:in `draw'
2011-06-27T12:45:32+00:00 app[web.1]:   from /app/config/routes.rb:1:in `<top (required)>'

Can you help me please?


I discovered the new app was running on a Ruby 1.9.2 stack while the older one was running on a 1.8.7 Ruby stack. Transitioned to the old stack and now everything works fine!

0

精彩评论

暂无评论...
验证码 换一张
取 消