From: Torbjorn T. <to...@to...> - 2006-09-05 20:22:21
|
> Bob Ippolito wrote: > That sounds good.. I'm currently using something like this, and it > would be nice to be able to use a cleaner API: Ok, I have now committed the 'final' fix for this. You should now be able to rewrite your code below to: GL=[{trace,false},{tmpdir,local_path(["priv", "tmp"]), {flags,[{auth_log,false},{copy_errlog,false}]}], SL=[{port,Port},{appmods,AppMods}, {flags,[{access_log,false}]}], yaws:start_embedded{DocRoot, SL, GL). --Tobbe (Ps. and embed.yaws is updated too) > configure({Port, DocRoot, AppMods}) -> > GC = yaws_config:make_default_gconf(false, undefined), > GC2 = GC#gconf{ > trace = false, > tmpdir = local_path(["priv", "tmp"])}, > GC3 = ?gc_set_auth_log(GC2, false), > GC4 = ?gc_set_copy_errlog(GC3, false), > > SC = #sconf{ > port = Port, > servername = "localhost", > listen = {127,0,0,1}, > docroot = DocRoot, > appmods = AppMods > }, > SC2 = ?sc_set_access_log(SC, false), > yaws_api:setconf(GC4, [[SC2]]). > > -bob > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |