I am trying to deploy my app to Heroku. I removed the 'sqlite3' gem and added the following part to my Gemfile:
gem 'sqlite3', group: :development
group :production do
gem 'pg'
gem 'rails_12factor'
end
After that, I ran bundle install to update it. However, when I try to do git add
, it said:
error: insufficient permission for adding an object to repository database.git/objects
error: Gemfile.lock: failed to insert into database
error: unable to index file Gemfile.lock
fatal: updating files failed
If I delete the code I added in the Gemfile, everything works just fine! I'm running on OSX 10.11.1, Rails 4.2.4, ruby 2.2.1p85 and git 2.4.9 (Apple Git-60).