语法错误,意外期待$ end'rail','3.2.1'

时间:2012-04-20 13:05:02

标签: ruby-on-rails syntax heroku

我无法将我的应用推送到heroku。 尝试推送时出现语法错误。 有解决方案吗您是否在rails 3.2.1之前遇到过此错误?

这是代码。提前谢谢。

C:\Users\Ronaldo Bahia\novahp>git push heroku master
Counting objects: 88, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (88/88), 97.69 KiB, done.
Total 88 (delta 15), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.2
       Running: bundle install --without development:test --path vendor/bundle -
-binstubs bin/
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/dsl.rb:7:in `instance_eval': /tmp/build_v5l73mbj47xw/Gemfile:5: syntax er
ror, unexpected ',', expecting $end
       'rails', '3.2.1'
       ^ (SyntaxError)
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/dsl.rb:7:in `evaluate'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/definition.rb:18:in `build'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler.rb:135:in `definition'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/cli.rb:220:in `install'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/vendor/thor/task.rb:22:in `run'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/vendor/thor/invocation.rb:118:in `invoke_task'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/vendor/thor.rb:263:in `dispatch'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/lib/b
undler/vendor/thor/base.rb:386:in `start'
       /tmp/build_v5l73mbj47xw/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.2/bin/b
undle:13:in `<top (required)>'
       vendor/bundle/ruby/1.9.1/bin/bundle:19:in `load'
       vendor/bundle/ruby/1.9.1/bin/bundle:19:in `<main>'
       There was an error in your Gemfile, and Bundler cannot continue.
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:novahp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:novahp.git'

0 个答案:

没有答案