Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
setupEnvironment() Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
fingerskier  
View profile  
 More options Nov 15 2012, 1:00 pm
From: fingerskier <fingersk...@gmail.com>
Date: Thu, 15 Nov 2012 10:00:31 -0800 (PST)
Local: Thurs, Nov 15 2012 1:00 pm
Subject: setupEnvironment() Question

Hello,

    First of all, I'm really glad to see this feature.

    I would like to automatically handle ORM settings based on environment.
 However, according to the docs setupEnvironment() is "executed on every
request".   So, I have to run ORMreload() to make the changes stick but a
setting like dbcreate="dropcreate/update" on my dev-server makes that
untenable.  Am I stuck hard-coding these settings? or, is there another way
[within the framework]?

Thank You,
Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Corfield  
View profile  
 More options Nov 15 2012, 3:11 pm
From: Sean Corfield <seancorfi...@gmail.com>
Date: Thu, 15 Nov 2012 15:11:16 -0500
Local: Thurs, Nov 15 2012 3:11 pm
Subject: Re: [framework-one] setupEnvironment() Question
Use an application variable to figure out whether you've run your "one
off" stuff - and reset it in setupApplication() so when you reload the
framework, it will re-run it on the next request.

Make sense?

Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fingerskier  
View profile  
 More options Nov 16 2012, 2:34 pm
From: fingerskier <fingersk...@gmail.com>
Date: Fri, 16 Nov 2012 11:34:32 -0800 (PST)
Local: Fri, Nov 16 2012 2:34 pm
Subject: Re: [framework-one] setupEnvironment() Question

  Yes, that does make sense.  I ended up just putting a *switch
(getEnvironment()) { ... }* statement atop my Application.cfc.  This *seems* to
achieve what I want and allow reloading the framework per request in
development.

Thank You,
Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »