0
votes

I want to use datamapper in a rails app i want to deploy on heroku. Therefore i need to add dm-postgres-adapter to my Gemfile. Is there any way to have heroku installing this gem without installing postgreSQL locally?

1
You can do this as Yock pointed out, but it's a bad idea. Your development environment should be as close as possible to your production environment. Bite the bullet and install Postgres - it's an excellent database anyway. - PreciousBodilyFluids
It is exceedingly common for production environments to differ from those in which you develop and test. While it is good in principle to keep your environments as close as possible, your code should tolerate sweeping changes in environment configuration. I would go so far as to say that if your code doesn't tolerate such changes then you've made mistakes that need to be addressed. - Mike Yockey

1 Answers

1
votes

Limit its context to production using "group".

group :production do
  gem "gemname"
end