简体   繁体   中英

jquery-rails Gem causing Heroku push to fail

I have an Rails 3 app with the following in its gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.5'

group :production do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
end

gem 'jquery-rails', '>= 1.0.12'

which when I attempt to deploy to Heroku fails with the following

   Installing railties (3.0.5) 
   /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:519:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)
    from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:479:in `from_yaml'
    ....

This seems to relate to the jquery-rails gem (removing it prevents the error and the app deploys correctly). I've tried it with and without a version specified and the problem still occurs.

解决方案是使用cedar堆栈(使用heroku create --stack cedar)创建一个新的Heroku应用程序,然后完美安装gems。

尝试在分组的gem之前声明jquery gem。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM