• 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
Re: How are you handling html templates created in other apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How are you handling html templates created in other apps?


  • Subject: Re: How are you handling html templates created in other apps?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 16 Feb 2007 14:30:33 -0800


On Feb 16, 2007, at 2:00 PM, Kevin Windham wrote:


On Feb 16, 2007, at 12:43 PM, Kevin Windham wrote:

Well, I am just using build & run to test and debug my app on my local machine and that's just what it does. It runs the app on a random port. Is there a way to configure Xcode so it will not do that and I can still just build/run and debug like normal? I know that once I deploy this doesn't matter, but I am a way off from deployment and I would like to make the build/debug cycle as close to painless as possible, because I am sure I will need to do a lot of debugging between now and deployment. ;-)


Kevin

On Feb 16, 2007, at 2:47 PM, Chuck Hill wrote:
Use DirectConnect, profit not.

DirectConnect evil.

http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Direct_Connect

Thanks Chuck.

For the record, I uncommented the wotaskd line in the WebObjects startup item, and then ran the item from the command line. I set - DWODirectConnectEnabled=false under Project -> Edit active executable in XCode. It looks like the developer tools installation took care of setting up the local apache installation for me. So I didn't have to change any config there.

Then I put my images inside the /Library/WebServer/Documents/images folder

You can make it even more convenient than that:

cd /Library/WebServer/Documents
ln -s /path/to/your/images

This has the same effect, but lets your images etc remain where they were checked out from source control. Any changes are automatically reflected in the browser; you don't need to remember to update the copy.


and set a base URL (http://powerbook.local/images/) in the HTML file so I didn't have to change all the image links generated by the HTML design program used by my designer.

If powerbook.local starts to give you problems (it always does for me), launch the app with -DWOHost=localhost and add
WOHost=localhost
to /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ Resources/Properties
You will need to restart wotaksd and Apache after that, or just reboot to be really, really sure. ;-)



Now I can simply cut and paste the html into a component, set the base, copy the images, and continue working.

And happiness prevails.


Chuck

--

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


  • Follow-Ups:
    • Re: How are you handling html templates created in other apps?
      • From: Guido Neitzer <email@hidden>
References: 
 >How are you handling html templates created in other apps? (From: Kevin Windham <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Chuck Hill <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Kevin Windham <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Kevin Windham <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Chuck Hill <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Chuck Hill <email@hidden>)
 >Re: How are you handling html templates created in other apps? (From: Kevin Windham <email@hidden>)

  • Prev by Date: Re: How are you handling html templates created in other apps?
  • Next by Date: Re: How are you handling html templates created in other apps?
  • Previous by thread: Re: How are you handling html templates created in other apps?
  • Next by thread: Re: How are you handling html templates created in other apps?
  • Index(es):
    • Date
    • Thread