Last active
December 15, 2015 22:39
-
-
Save echristopherson/5334475 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ type ssha-heroku | |
ssha-heroku is aliased to `eval `ssh-agent`; ssh-add -t 5m ~/.ssh/heroku.id_rsa' | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ ssha-heroku | |
Agent pid 19642 | |
Enter passphrase for /Users/eric/.ssh/heroku.id_rsa: | |
Identity added: /Users/eric/.ssh/heroku.id_rsa (/Users/eric/.ssh/heroku.id_rsa) | |
Lifetime set to 300 seconds | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git push heroku master | |
Counting objects: 384, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (260/260), done. | |
Writing objects: 100% (384/384), 60.58 KiB, done. | |
Total 384 (delta 172), reused 215 (delta 86) | |
-----> Ruby/NoLockfile app detected | |
! | |
! Gemfile.lock required. Please check it in. | |
! | |
! Heroku push rejected, failed to compile Ruby/nolockfile app | |
To [email protected]:stormy-coast-5058.git | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to '[email protected]:stormy-coast-5058.git' | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git ls-files |grep Gemfile | |
Gemfile | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ vim .gitignore # here I remove the line ignoring Gemfile.lock | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git add .gitignore Gemfile.lock | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git commit -m 'Stop ignoring Gemfile.lock so we can deploy to Heroku' | |
[master 1b691f1] Stop ignoring Gemfile.lock so we can deploy to Heroku | |
2 files changed, 182 insertions(+), 6 deletions(-) | |
create mode 100644 Gemfile.lock | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git ls-files |grep Gemfile | |
Gemfile | |
Gemfile.lock | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ git push heroku master | |
Counting objects: 387, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (263/263), done. | |
Writing objects: 100% (387/387), 60.90 KiB, done. | |
Total 387 (delta 174), reused 215 (delta 86) | |
-----> Ruby/Rails app detected | |
-----> Installing dependencies using Bundler version 1.3.2 | |
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment | |
You are trying to install in deployment mode after changing | |
your Gemfile. Run `bundle install` elsewhere and add the | |
updated Gemfile.lock to version control. | |
You have added to the Gemfile: | |
* rb-inotify (~> 0.9) | |
* libnotify (= 0.5.9) | |
You have deleted from the Gemfile: | |
* rb-fsevent (= 0.9.1) | |
* terminal-notifier-guard (= 1.5.3) | |
! | |
! Failed to install gems via Bundler. | |
! | |
! Heroku push rejected, failed to compile Ruby/rails app | |
To [email protected]:stormy-coast-5058.git | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to '[email protected]:stormy-coast-5058.git' | |
ruby-1.9.3-p392@railstutorial3 ~/Scripts/Rails/railstutorial/sample_app | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment