我目前正在尝试将应用部署到heroku https://github.com/Shopify/dashing/wiki/How-to%3A-Deploy-to-Heroku
我完全按照这些说明进行操作
bundle install
git init
git add .
git commit -m "My beautiful dashboard"
heroku apps:create myapp
git push heroku master
并且每次都会收到此错误
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
答案 0 :(得分:1)
你没有Gemfile.lock文件
尝试
bundle install
然后git commit -am "message you wanna put here"
如下所述,检查gitignore
并删除/Gemfile.lock
,然后再次提交可以解决您的问题