--- Log opened Sat Nov 21 00:00:43 2009
07:21 < McManiaC> how would you run an external cgi script with happstack? just call System.Process "runCommand" ?
07:22 < Lemmih> McManiaC: I would let the http server handle it.
07:23 < McManiaC> how?
07:23 < McManiaC> I dont use anything else but happstack ;)
07:23 < Lemmih> I almost always have an instance of apache or lightthd in front of happstack.
19:18 < McManiaC> stepcut`: how would I run an external (f)cgi script from within happstack?
19:18 < McManiaC> with System.Process?
19:18 < stepcut> McManiaC: yes, though you would need to do a bit of extra work to set the Environment variables and stuff
19:19 < stepcut> would be nice to support a mod_php like thing too I think :p
19:19 < McManiaC> ;)
19:21 < stepcut> for calling cgi stuff, I would look at hack-handler-cgi, hack-handler-happstack, etc, and see if that helps at all
19:21 < stepcut> (found on hackage)
19:23 < McManiaC> cool
19:26 < McManiaC> might be "interesting" on how to make this work with happstack tho
19:48 < McManiaC> how stupid is that lol
19:48 < McManiaC> runWithConfig conf = simpleHTTP nullConf { H.port = port conf } . appToServerPart conf
19:48 < McManiaC> appToServerPart :: ServerConf -> Application -> ServerPart (Happstack.Response)
19:48 < McManiaC> appToServerPart conf app = askRq >>= liftIO . (hackRToServerPartR <$>) . app . reqToEnv
19:48 < McManiaC> but they only export runWithConfig...
21:03 < stepcut> hrm
--- Log closed Sun Nov 22 00:00:50 2009