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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user