开发者

Debugging Heroku Compile Error

开发者 https://www.devze.com 2023-01-26 23:56 出处:网络
I\'m not sure what to do if I have a compile error after I deploy to heroku.Things are working okay on my system locally.

I'm not sure what to do if I have a compile error after I deploy to heroku. Things are working okay on my system locally.

This is what I am getting from the Heroku console:

Z-Kidds-开发者_开发百科MacBook-Air:sample_app zkidd$ heroku console
Ruby console for warm-rain-75.heroku.com

User.create(:name => "Example User", :email => "user@example.com", SyntaxError: compile error /home/heroku_rack/lib/console.rb:150: syntax error, unexpected $end User.create(:name => "Example User", :email => "user@example.com", ^ /home/heroku_rack/lib/console.rb:150 /home/heroku_rack/lib/console.rb:150:in call' /home/heroku_rack/lib/console.rb:28:incall' /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'

Blindly, I ran heroku db:migrate, thinking that might help, but it did not.


This won't work on your local machine too. You have an extra/are missing an end in your controller hence the unexpected $end message.

0

精彩评论

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