How do I get rid of the orange Development Mode message?

17 views
Skip to first unread message

Göran Svensson

unread,
Feb 6, 2014, 6:34:53 PM2/6/14
to getx...@googlegroups.com
Hi,

I have just set up a site at HostMedia. Dirt Cheap but lots of things to figur out and configure. A PaaS on Jelastic takes minutes to set up but is 12 times more expensive!!

I have added this.development = false; in Application.cfm

But this does not help, I have also tried with this.development = NO; and this.development = "NO";

Railo seems to think the server is localhost:

remote_addr=127.0.0.1
remote_host=127.0.0.1 

So I changed the cgi variables for this.development to:

this.development = IsLocalHost(CGI.REMOTE_ADDR) ? true : false;

this.development = IsLocalHost(CGI.local_host) ? true : false;

this.development = IsLocalHost(CGI.http_host) ? true : false;

But no luck.

John Whish

unread,
Feb 7, 2014, 8:57:00 AM2/7/14
to getx...@googlegroups.com
I think you just need to reload the config as the key is only populated on application start:

You can do that by appending ?reload=true to then end of the URL.

I'd also suggest you delete the banner from the layout file as it's only there as a warning :)



--
You received this message because you are subscribed to the Google Groups "Xindi CMS CFML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getxindi+u...@googlegroups.com.
To post to this group, send an email to getx...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/getxindi/5a83ebe8-9678-4ee9-9a91-2adcccd8f5d3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Göran Svensson

unread,
Feb 10, 2014, 5:46:55 AM2/10/14
to getx...@googlegroups.com, john....@googlemail.com
Thanks, 

that worked!
Reply all
Reply to author
Forward
0 new messages