Re: Dev vs Deploy with completeURLWithRequestHandlerKey
Re: Dev vs Deploy with completeURLWithRequestHandlerKey
- Subject: Re: Dev vs Deploy with completeURLWithRequestHandlerKey
- From: Greg Hulands <email@hidden>
- Date: Fri, 21 Oct 2005 12:18:38 +1000
That was it. I have never run monitor on my dev machine to set that up.
Thanks Chuck, you're the Champ!
Regards,
Greg
On 21/10/2005, at 12:13 PM, Chuck Hill wrote:
Check /Library/WebObjects/Configuration/SiteConfig.xml
<SiteConfig type="NSDictionary">
<hostArray type="NSArray">
<element type="NSDictionary">
<type type="NSString">MACOSX</type>
<name type="NSString">localhost</name>
</element>
</hostArray>
On Oct 20, 2005, at 7:02 PM, Greg Hulands wrote:
That would explain the no difference in the url generation. But
now when I try to connect it says no instance available.
http://localhost/cgi-bin/WebObjects/ShoeBox.woa/-50212
Greg
On 21/10/2005, at 11:51 AM, Chuck Hill wrote:
On Oct 20, 2005, at 6:44 PM, Greg Hulands wrote:
Hi,
When using context().completeURLWithRequestHandlerKey() when
developing locally, it sets the host name to my bonjour name,
iBook.local, so that everytime I try and use the
completeURLWithRequestHandlerKey method, it puts in iBook.local
instead of localhost. I have tried launching with -DWOHost
localhost
I'm not sure if that is a typo or not, but there are two forms
for this and you can't mix them:
-WOHost localhost
-DWOHost=localhost
If you use -D you must use an = sign as this is the Java way of
defining values. The first one is the traditional WO way.
Chuck
, but it doesn't seem to change anything. Currently I have in
the method that uses completeURLWithRequestHandlerKey 2 lines,
one commented out and the other active and I just switch the
commented line depending if I am running local or deploying. The
problem I have with this current situation is that I can
sometimes forget to switch the lines, so when I deploy it
returns localhost, instead of the real domain.
I have searched the archives but could not find any resembelance
to my problem.
Any helps is greatly appreciated.
Regards,
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems. http://www.global-village.net/products/
practical_webobjects
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/
practical_webobjects
_______________________________________________
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