1
0
forked from GitHub/gf-core

gf -server[=port]

You can now specify which port the HTTP server should run on in server mode.
The default is 41296.
This commit is contained in:
hallgren
2011-12-14 15:28:27 +00:00
parent c2b5aba409
commit 20b4ff07e3
4 changed files with 13 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ import RunHTTP(cgiHandler)
debug s = liftIO (logPutStrLn s)
-- | Combined FastCGI and HTTP server
server execute1 state0 =
server port execute1 state0 =
do --stderrToFile logFile
state <- newMVar M.empty
cache <- PS.newPGFCache
@@ -61,7 +61,6 @@ server execute1 state0 =
++show port++"/ in your web browser."
initServer port (modifyMVar state . handle state0 cache execute1)
port = 41296
{-
-- | FastCGI request handler
handle_fcgi execute1 state0 stateM cache =