I have the following issue:
I'm trying to deploy my project on heroku but after i run
git push heroku master
I get the following:
git push heroku master -f
Counting objects: 524, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (498/498), done.
Writing objects: 100% (524/524), 157.76 KiB, done.
Total 524 (delta 207), reused 62 (delta 2)
-----> Heroku receiving push
-----> Ruby/Rails app detected
!
! Gemfile.lock is required. Please run "bundle install" locally
! and commit your Gemfile.lock.
!
! Heroku push rejected, failed to compile Ruby/rails app
To [email protected]:*****.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:*****.git'
I have run bundle install
and bundle update
for several times, i tried to delete Gemfile.lock
from the repository and from my filesystem. But i still get the same message. Can anyone tell me what am i doing wrong?
The branch i'm trying to push is cloned from master.
Few things
bundle install
on your local prompt.git add .
or you can add only Gemfile.lock with this git add Gemfile.lock
Now do git push heroku
it should work.