0

I have a little Rails app that is deployed on Heroku. They require a Postgres database, which was not a problem to switch from SQLite3 on their side, but now I can't develop locally without pushing to Heroku every time I want to see changes. I downloaded and installed all of the Postgres assets including the little MenuBar app that keeps a server running and have been all over documentation. Any help?

1 Answer 1

1

try this

write in your gemfile

group :development do
  gem "sqlite3"
end
group :production do
 gem 'pg'
end

when you are working on development mode then it used sqlite3 and while you are working on production mode then it used pg

Sign up to request clarification or add additional context in comments.

1 Comment

i tried that and it didnt seem to work. is there a specific way to get into "development mode" #n00b

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.