On Sun, Aug 15, 2010 at 9:47 PM, Jim mack <[email protected]> wrote: > Hi, I've got FUEL working w/listener, on Mac, factor version = yesterday's > binaries. I'm launching a furnace website. > > If I launch it from Factor listener directly, it executes but locks the > listener, and I have to restart it. (Once I've restarted it, I can modify > source, hit F2 and the website reflects those changes, and if I call the > launching word again, it no longer locks the listener - only the first > time.) If this seems just too weird, see my explanation below.
The 'httpd' word does not return until the HTTP server stops running. So what you should do is launch it in a thread, [ 8888 httpd ] in-thread > If I launch from aquamacs, the same thing happens, but I don't know how to > restart the listener. If I launch it from aquamacs listener in a thread, it > serves the website but I don't know how to get it to refresh its code. > > Is there a way to work interactively whereby C-c C-r will update my > website's code, just as I can do in the factor listener? Separate the part that sets main-responder and the part that starts httpd into two words. Then to refresh your web site, reload your code with refresh-all, and re-invoke the word that sets up main-responder. If the HTTP server is still running, subsequent requests will invoke your new actions. Slava ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
