• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question: Best practice for switching db connections as build time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question: Best practice for switching db connections as build time


  • Subject: Question: Best practice for switching db connections as build time
  • From: William Sandner <email@hidden>
  • Date: Fri, 24 Oct 2008 16:17:02 +0200
  • Organization: CodeFab

We have 4 different environments that we deploy to, development, test, staging, and production. We are using ant as our build tool.

For most of our environments we connect to a localhost database with a common password, but production is on an external server which has a more secure password. What is the best way to change the db connection at build time?

Example:
When I build for production, I want to make sure the connection is pointing to the correct server and the password is correct.


I know I can use ant to search and replace for connection string tokens in the Properties file, but is this the easiest way?

--
William Sandner

+39 347 4090640 (mobile)
+39 023 6535381 (Milano)
+1 773 828 4363 (Chicago)
+1 773 326 0600 (Fax)


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Question: Best practice for switching db connections as build time
      • From: Miguel Arroz <email@hidden>
    • Re: Question: Best practice for switching db connections as build time
      • From: Chuck Hill <email@hidden>
    • Re: Question: Best practice for switching db connections as build time
      • From: Ken Anderson <email@hidden>
    • Re: Question: Best practice for switching db connections as build time
      • From: Johann Werner <email@hidden>
    • Re: Question: Best practice for switching db connections as build time
      • From: Henrique Gomes <email@hidden>
    • Re: Question: Best practice for switching db connections as build time
      • From: Kieran Kelleher <email@hidden>
  • Prev by Date: Re: [SOLVED] How do I add user Info in nightly's entity modeler?
  • Next by Date: Re: Running tests from ant on a continuous integration server
  • Previous by thread: Re: [SOLVED] How do I add user Info in nightly's entity modeler?
  • Next by thread: Re: Question: Best practice for switching db connections as build time
  • Index(es):
    • Date
    • Thread