RailsApps / rails3-devise-rspec-cucumber

An example Rails 3.2 app with Devise and RSpec and Cucumber.
http://railsapps.github.io/
445 stars 144 forks source link

Heroku Deploy Error #16

Closed ericflecher closed 12 years ago

ericflecher commented 12 years ago

Please help!!!

After running "bundle install" and "git push heroku master"

-----> Gemfile detected, running Bundler version 1.0.7 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:
   * libnotify
   * rb-inotify
   * therubyracer (>= 0.9.8)

   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

schadenfred commented 12 years ago

did you try "bundle update?"

ericflecher commented 12 years ago

bundle install --deployment bundle update

git is up-to-date

schadenfred commented 12 years ago

okay so you did $ bundle update $ git add . $ git commit -am "some commit note" $ git push heroku master

And it's still giving you this error, huh?

Only other think I can think of is check your .gitignore file, and make sure it is tracking Gemfile.lock.

http://gembundler.com/man/bundle-update.1.html

ericflecher commented 12 years ago

unfortunately, I tried all that to no avail.

Have you successfully pushed to heroku? if yes what are the contents of your gemfile and gemfile.lock

schadenfred commented 12 years ago

I haven't pushed this particular application recently, so there may be some bugs which I don't understand. I have, however, pushed apps to heroku before, and from time to time get errors similar to this one.

Try this:

1) rm -rf Gemfile.lock 2) git rm -rf Gemfile.lock

This should get rid of whatever Gemfile.lock files are on your development macine.

Once you've done that, run bundle install. This should give you a fresh Gemfile.lock with no issues. Then try committing and pushing it.

Also do you have a .bundle file? You would if you've run bundle package.

ericflecher commented 12 years ago

that appeared to work. thanks for the help!

schadenfred commented 12 years ago

Great! Was it the .bundle or Gemdile.lock? On Nov 17, 2011 8:05 PM, "Eric Flecher" < reply@reply.github.com> wrote:

that appeared to work. thanks for the help!


Reply to this email directly or view it on GitHub:

https://github.com/RailsApps/rails3-devise-rspec-cucumber/issues/16#issuecomment-2785577

ericflecher commented 12 years ago

gem lock. after removing the local copy and from git it worked

DanielKehoe commented 12 years ago

Glad you got it working! I'll close the issue.

Just to be clear, this wasn't an issue with the implementation of the rails3-devise-rspec-cucumber example app.

In the future, you'll probably get a faster response for questions like this on Stack Overflow: http://stackoverflow.com/

-- Daniel