On 11 October 2013 13:45, Glen Rainbird <[email protected]> wrote:

> During the preso Geoff mentioned how he configured his datasource in Railo
> and then in his app code but I can't remember precisely what that entailed.
> Was it just two datasource entries in Railo (live db & dev db) and then a
> switch in the app code to use one of the two datasources depending on what
> env/machine he was running on - I do remember a long string of machine
> names?
>

Here's a gist of a sample function you might use to change attributes in
the application.cfc based on the machine name:
  https://gist.github.com/modius/6968057


> I think Robin said his preferred method was a single Railo datasource and
> then edit his dev machine's hosts file so that it resolved to a local db,
> is that right?
>

I'm not sure a single datasource will work in the PaaS example I was
showing -- the JDBC connection string would be different for both
environments; local and PaaS based.

Hope that helps!

-- geoff
http://www.daemon.com.au/
twitter. @modius

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to