首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >需要Gemfile.lock。请办理登机手续。

需要Gemfile.lock。请办理登机手续。
EN

Stack Overflow用户
提问于 2018-08-12 17:27:13
回答 1查看 546关注 0票数 -2
代码语言:javascript
复制
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (11/11), 3.82 KiB | 1.91 MiB/s, done.
Total 11 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/NoLockfile
remote:
remote:  !
remote:  !     Gemfile.lock required. Please check it in.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to aqueous-reaches-83684.
remote:
To https://git.heroku.com/aqueous-reaches-83684.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/aqueous-reaches-83684.git'

我想在heroku上启动我的应用程序

我总是犯同样的错误:

需要

Gemfile.lock。请办理登机手续。

我按照说明做了所有的事情!已删除,已下载,无论如何都不起作用

使用

代码语言:javascript
复制
bundle install

仍然是同样的错误

EN

回答 1

Stack Overflow用户

发布于 2018-08-13 04:24:54

确保将Gemfile.lock添加到源代码管理中。

考虑到您在主分支上:

代码语言:javascript
复制
git add Gemfile.lock
git commit -m "Commit Gemfile.lock"
git push heroku master

否则:

代码语言:javascript
复制
git push heroku current_branch:master

如果它不工作,您可能会在.gitignore文件中忽略它。

从忽略列表中删除Gemfile.lock*.lock,然后重复上述命令。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51807508

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档