i'm new to Ruby on Rails, app is running on local machine
local bundle works
however when i try to git push heroku master, this is the error i get:
remote:
remote: -----> Ruby/Rails app detected
remote: -----> Using Ruby version: ruby-1.9.3
remote: -----> Installing dependencies using
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
remote: /usr/bin/env: ruby1.9.1: No such file or directory
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Heroku push rejected, failed to compile Ruby/rails app
remote:
my gemfile:
source 'http://rubygems.org'
ruby '1.9.3'
gem 'rails', '4.0.0.beta1'
group :development, :test do
gem 'sqlite3'
gem 'rspec-rails'
end
group :assets do
gem 'sass-rails', '~> 4.0.0.beta1'
gem 'coffee-rails', '~> 4.0.0.beta1'
gem 'therubyracer', platforms: :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.0.1'
group :test do
gem 'capybara'
end
group :production do
gem 'pg'
end
what am i missing? thanks in advance!
I had a similar problem. The issue is that Bundler is generating stubs. Rails 4 apps do not store stubs in the app's bin/ directory. In order to fix this problem you need to use the following commands:
Then you need to update the bin directory to use the new Rails 4 executables
Then add the new bin/ directory to your version control using:
Commit the changes and push your code to Heroku
the issue is with your ruby
PATH
. so first see what happens when you runDo you get similar output? If not, then check your path.
notice, how
bin
is in the path. in case its missing from yours, you can manually setPATH
and add thebin
by following command.