尝试“git push heroku master”时出现错误

发布于 2024-10-11 19:59:09 字数 952 浏览 0 评论 0原文

关注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

提前感谢!

Following railstutorial.org, and I'm getting this error when I try to push to 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

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可是我不能没有你 2024-10-18 19:59:09
$ 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
$ 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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文