I am currently running Resin on my own personal computer as a development environment. I want a way so that when I put the same files up on my web hosts server, they will connect to the production database instead of a test database.
My current database connection code is stored in a backend factory. I want to add some way to know which environment I am in (which system I am on), so I can change the jdbc dynamically.
Is this the right way to do this or is there an easier way?