ruby - How do I ADD the pg gem in the production environment in Rails -
i new programming , using rails on cloud9 ide. having difficulty trying push app heroku. error:...
push rejected, no cedar-supported app detected remote: hint: occurs when heroku cannot detect buildpack remote:
note: tutorial following tells me @ heroku setup section:
heroku uses postgresql database (pronounced “post-gres-cue-ell”, , called “postgres” short), means need add pg gem in production environment allow rails talk postgres:17
group :production gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2’ end
question: how add pg
gem in production environment (i suspect push rejected error due this)
there should file in application called gemfile
open , add:
group :production gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2’ end
save file, commit , try again.
Comments
Post a Comment