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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -