gpt4 book ai didi

ruby-on-rails - Gemfile.lock 未 checkin - Heroku

转载 作者:IT王子 更新时间:2023-10-29 01:14:54 25 4
gpt4 key购买 nike

在尝试“git push heroku master”时,我不断收到错误:

Counting objects: 266, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (239/239), done.
Writing objects: 100% (266/266), 222.68 KiB, done.
Total 266 (delta 55), reused 0 (delta 0)

-----> Heroku receiving push
-----> Rails app detected
-----> Detected Rails is not set to serve static_assets
Installing rails3_serve_static_assets... done
-----> Gemfile detected, running Bundler version 1.0.3
Unresolved dependencies detected; Installing...
Using --without development:test
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control

You have deleted from the Gemfile:
* version: 1.0.6
FAILED: http://docs.heroku.com/bundler
! Heroku push rejected, failed to install gems via Bundler

error: hooks/pre-receive exited with error code 1
To git@heroku.com:freezing-frost-65.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:freezing-frost-65.git'

我尝试将 Gemfile 和 Gemfile.lock 添加到 git 但无济于事。我尝试删除 .bundle 目录和 Gemfile.lock 但出现同样的错误。

最佳答案

bundler 1.0.6 版本有问题你需要在你的开发机器上运行“gem update bundler”来更新 bundler 到 1.0.7。然后你需要在你的应用程序中运行 bundle update 来生成一个新的 Gemfile.lock 文件。您将看到 Gemfile.lock 已更新。提交这个新的 Gemfile.lock 并再次推送到 heroku。

关于ruby-on-rails - Gemfile.lock 未 checkin - Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4258327/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com