質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Q&A

1回答

1295閲覧

herokuでgit push heroku masterに失敗

okamotchan_

総合スコア10

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

1グッド

1クリップ

投稿2018/12/17 07:39

###前提
以下、参考にした記事です。
railsアプリをherokuを使って確実にデプロイする方法
###環境

macOS mojave
ruby 2.5.1
Rails5.2.2
heroku-18

発生している問題・エラーメッセージ

remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: Some gems seem to be missing from your vendor/cache directory. remote: Could not find pg-1.1.3 in any of the sources remote: Bundler Output: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: Some gems seem to be missing from your vendor/cache directory. remote: Could not find pg-1.1.3 in any of the sources remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to welcomelinelikechat. remote: To https://git.heroku.com/hoge.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/hoge.git'

該当のソースコード

##database.yml production: <<: *default #database: db/production.sqlite3 adapter: postgresql encoding: unicode pool: 5

試したこと

  • 参考にしたリンク先の内容に沿って実行(database.ymlにてproduction環境の設定など)

  • エラー文通り、Gemfile.lockのBUNDLED WITHのバージョンを1.15.2->1.17.1に変更した→変化なし

DrqYuto👍を押しています

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

Gemfile.lockを直接変更するのはあまりオススメできません。

ローンチ前のアプリだと思います。

一度Gemfile.lockファイルを削除してからbundle installを行い、add、commit、pushをお試しください。

投稿2019/03/24 01:30

ykp_yk

総合スコア654

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問