brownythedog
brownythedog

Reputation: 21

trying to deploy app to heroku recieving error everytime

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

Upvotes: 1

Views: 332

Answers (1)

Robin Hwang
Robin Hwang

Reputation: 189

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

Upvotes: 1

Related Questions