gpt4 book ai didi

ruby - 尝试 "git push heroku master"时出错

转载 作者:数据小太阳 更新时间:2023-10-29 07:57:46 25 4
gpt4 key购买 nike

关注 railstutorial.org,当我尝试推送到 heroku 时遇到此错误:

# git push heroku master
Counting objects: 85, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (68/68), done.
Writing objects: 100% (85/85), 87.95 KiB, done.
Total 85 (delta 18), reused 0 (delta 0)
-----> 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...
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
You have added to the Gemfile:
* sqlite3-ruby (= 1.3.2)
You have deleted from the Gemfile:
* sqlite3-ruby
FAILED: http://docs.heroku.com/bundler
! Heroku push rejected, failed to install gems via Bundler

提前致谢!

最佳答案

$ bundle install
$ git add Gemfile
$ git add Gemfile.lock
$ git commit -m "Make Gemfile and Gemfile.lock consistent with each other."
$ git push heroku master

关于ruby - 尝试 "git push heroku master"时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4698100/

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