【发布时间】:2011-05-14 05:25:20
【问题描述】:
如果我在部署到 heroku 后出现编译错误,我不确定该怎么办。我的系统在本地运行正常。
这是我从 Heroku 控制台得到的:
Z-Kidds-MacBook-Air:sample_app zkidd$ heroku console
Ruby console for warm-rain-75.heroku.com
User.create(:name => "示例用户", :email => "user@example.com", SyntaxError:编译错误 /home/heroku_rack/lib/console.rb:150:语法错误,意外 $end User.create(:name => "示例用户", :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 `同步'
我盲目地运行了 heroku db:migrate,认为这可能会有所帮助,但它没有。
【问题讨论】:
标签: ruby-on-rails heroku