Ruby 每次尝试将应用部署到heroku接收错误

Ruby 每次尝试将应用部署到heroku接收错误,ruby,heroku,github,Ruby,Heroku,Github,我目前正在尝试将一个应用程序部署到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 t

我目前正在尝试将一个应用程序部署到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

您没有Gemfile.lock文件
尝试
bundle安装
然后
git commit-am“您想放在这里的消息”


如下所述,检查gitignore并删除Gemfile.lock,再次提交可能会解决您的问题。如果您没有Gemfile.lock文件,则 尝试
bundle安装
然后
git commit-am“您想放在这里的消息”


如下所述,检查
gitignore
并删除
/Gemfile.lock
,再次提交可能会解决您的问题

在运行bundle安装后,我的本地repo中有Gemfile.lock,但当我运行git commit-am“message here”时,我在分支主机上收到此消息,无需提交(工作目录清理)您还需要提交锁文件。git add gemlike.lock我正在运行git add gemfile.lock命令,但是当我尝试提交它时,我收到了我在上面发布的错误“nothing to commit”(无需提交),非常奇怪,显示git status的结果,看看你是否真的错过了什么。哦。。。我明白了,检查你的
gitignore
,删除
/Gemfile.lock
,这就是你无法提交的原因。。。因此,在运行bundle install之后,只需再次提交gemfile.lock就可以在我的本地repo中保存,但是当我运行git commit-am“message here”时,我会收到这个消息#在分支主机上没有要提交的内容(工作目录清理),您也会希望提交锁文件。git add gemlike.lock我正在运行git add gemfile.lock命令,但是当我尝试提交它时,我收到了我在上面发布的错误“nothing to commit”(无需提交),非常奇怪,显示git status的结果,看看你是否真的错过了什么。哦。。。我明白了,检查你的
gitignore
,删除
/Gemfile.lock
,这就是你无法提交的原因。。。那就再做一次吧