###前提
以下、参考にした記事です。
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に変更した→変化なし
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。