Cant seem to push to Heroku

I am working with a rails app and I can't seem to be able to push my app to Heroku. I have set up everything and use git but everytime I push it to heroku I get this:

   Unresolved dependencies detected; Installing...
   Using --without development:test
   You have modified your Gemfile in development but did not check
   the resulting snapshot (Gemfile.lock) into version control

   You have added to the Gemfile:
   * therubyracer (>= 0.8.2)
   * libnotify
   * rb-inotify

   You have deleted from the Gemfile:
   * growl
   * rb-fsevent
   FAILED: http://devcenter.heroku.com/articles/bundler

! Heroku push rejected, failed to install gems via Bundler

I have noticed that my version of gem is 1.0.11 but the heroku push is using running Bundler version 1.0.7. I dont know if this makes a difference but I don't know how to go back to an older version.

Thanks for any help.

Answers


It looks like you failed to add your Gemfile.lock into the git repo for heroku.

Make sure it's not in your .gitignore, then:

git add Gemfile.lock
git commit -m "Adding Gemfile.lock"

Need Your Help

Separate Launcher and Activity icon with Android

android android-activity icons launcher

I've got a simple application with one single activity. Actually, the launcher icon is the same as the activity's one (the one in the top-left corner). I would like to put another icon in my activity

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.