1

i am currently trying to deploy an app to heroku https://github.com/Shopify/dashing/wiki/How-to%3A-Deploy-to-Heroku

I am following these instructions exactly

bundle install
git init
git add .
git commit -m "My beautiful dashboard"

heroku apps:create myapp

git push heroku master

and receive this error everytime

git push heroku master
Counting objects: 441, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (225/225), done.
Writing objects: 100% (441/441), 503.88 KiB | 445 KiB/s, done.
Total 441 (delta 170), reused 441 (delta 170)

-----> Heroku receiving push
-----> Ruby app detected
 !
 !     Gemfile.lock is required. Please run "bundle install" locally
 !     and commit your Gemfile.lock.
 !
 !     Heroku push rejected, failed to compile Ruby app

1 Answer 1

1

you don't have a Gemfile.lock file
try bundle install and then git commit -am "message you wanna put here"

as mentioned below, check the gitignore and remove /Gemfile.lock and the commit again may resolve your problem

Sign up to request clarification or add additional context in comments.

7 Comments

i have the gemfile.lock in my local repo after running bundle install but when i run git commit -am "message here" i receive this# On branch master nothing to commit (working directory clean)
You'll want to commit the lock file too. git add gemlike.lock
I am running the command git add gemfile.lock but when I attempt to commit it I receive the error I posted above " nothing to commit"
quite strange, show the result of git status, see if you really miss something.
oh ... I see, check your gitignore , delete the /Gemfile.lock, that's the reason you can't commit... so just commit again
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.