由于Gemfile.lock不存在,无法将Redmine部署到HEROKU [英] Failed to deploy redmine to HEROKU due to Gemfile.lock nonexistence

查看:88
本文介绍了由于Gemfile.lock不存在,无法将Redmine部署到HEROKU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在推送/部署到Heroku时,我遇到了这个特别的错误

I had this particular error upon pushing/deploying to Heroku

Counting objects: 92259, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19977/19977), done.
Writing objects:  48% (45054/92259), 13.63 MiB | 103 KiB/s    

Writing objects: 100% (92259/92259), 23.82 MiB | 87 KiB/s, done.
Total 92259 (delta 72165), reused 90569 (delta 70774)

-----> Ruby/NoLockfile app detected
 !
 !     Gemfile.lock required. Please check it in.
 !

 !     Push rejected, failed to compile Ruby/NoLockfile app

To git@heroku.com:xiruki-task.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:xiruki-task.git'

我尝试删除Gemfile.lock并再次捆绑安装,但是没有运气.

I've tried to remove the Gemfile.lock and bundle install again but no luck.

任何解决方法将不胜感激.

Any workarounds will be appreciated.

推荐答案

运行bundle install,这将生成您的gemfile.lock.然后提交并部署到heroku

run bundle install and that will generate your gemfile.lock. Then commit it and deploy to heroku

这篇关于由于Gemfile.lock不存在,无法将Redmine部署到HEROKU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆