I have the following in my Gemfile, but when i run bundle install on my local, i get an error about postgres being unavailable.
group :development do
gem 'dm-sqlite-adapter'
end
group :production do
gem 'dm-postgres-adapter'
end
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to tell Bundler to exclude the production group:
It will remember this for future runs on the same machine (it stores this in the
.bundledirectory), so you only need to do this once and then can simply dobundleorbundle installin the future.