Is it possible to have two different databases for development or production? One for Heroku and one for local development?
Heroku uses PostgreSQL but I prefer SQLlite for local development.
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.
yes, it’s totally possible – you can then use
heroku db:pushto push your local SQLite database into postgres running on Heroku.BUT
And this is from personal experience, I’ve run into situations where SQL I’ve written is different between sqlite/postgres/mysql AND also gems I’ve used which themselves used findbysql which weren’t tested against postgres and has then caught my out when I’ve put it on Heroku.
For the few seconds it takes to install postgres locally I would STRONGLY recommend you use the DB platform you are ultimately going to deploy to.