Attempting to deploy a very basic Rails 4.0.0 beta 1 app on Ruby 2.0.0 using Heroku Cedar. When I try and push to Heroku I get the following bundler error:
bin/bundle: 1: Syntax error: "(" unexpected
Failed to install gems via Bundler.
Gemfile is as follows:
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.0.beta1'
gem 'jquery-rails', '~> 2.2.1'
gem 'jbuilder', '~> 1.0.1'
gem 'angularjs-rails', '~> 1.0.5'
gem 'lodash-rails'
group :assets do
gem 'sass-rails', '~> 4.0.0.beta1'
gem 'coffee-rails', '~> 4.0.0.beta1'
gem 'uglifier', '>= 1.0.3'
end
group :test do
gem 'factory_girl_rails', '~> 4.2.1'
end
group :test, :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
I don't get any bundler errors with bundle install
when I run it locally using bundler 1.3.4
Anyone have any idea or experience with edge Rails on Heroku Cedar?
Use this gist to install a rails 4 app on heroku.
I was unable to get it running on heroku with ruby 2.0. Using the above gist is my way of doing it until there is a clear way of upgrading smoothly to ruby 2.0.
问题实际上是bin目录中的“ bundle”可执行文件,一旦我删除了“ bin / bundler”,它的部署就很好了。
You need to add a line with ruby "2.0.0"
to the begin of your Gemfile.
For more informations go to the heroku documentation .
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.