読者です 読者をやめる 読者になる 読者になる

【Ruby】git push heroku masterでエラー(You have added to the Gemfile:)

Ruby

 

git push heroku masterの実行で以下のエラー

remote: You are trying to install in deployment mode after changing
remote: your Gemfile. Run `bundle install` elsewhere and add the
remote: updated Gemfile.lock to version control.
remote: You have added to the Gemfile:
remote: * rails_12factor
remote: Bundler Output: You are trying to install in deployment mode after changing
remote: your Gemfile. Run `bundle install` elsewhere and add the
remote: updated Gemfile.lock to version control.
remote:
remote: You have added to the Gemfile:
remote: * rails_12factor
remote: !
remote: ! Failed to install gems via Bundler.

 

 

<原因>

Gemfileファイルの記述誤り

gem "rails_12factor", group: :production    ※✖

gem 'rails_12factor', group: :production      ※〇

 

シングルクウォテーションで囲みましょう。