fix(webserver): directory must be absolute
This commit is contained in:
parent
9e8cc30744
commit
bff0c6230b
@ -8,6 +8,7 @@ module System.Term ( initialize ) where
|
|||||||
import System.Console.CmdArgs
|
import System.Console.CmdArgs
|
||||||
import qualified System.Console.CmdArgs.Explicit as E
|
import qualified System.Console.CmdArgs.Explicit as E
|
||||||
import System.Environment
|
import System.Environment
|
||||||
|
import System.Directory
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
|
||||||
@ -83,7 +84,9 @@ module System.Term ( initialize ) where
|
|||||||
| ssl = "403"
|
| ssl = "403"
|
||||||
| otherwise = "80"
|
| otherwise = "80"
|
||||||
|
|
||||||
let params = S.ServerParams { S.directory = directory
|
absoluteDirectory <- makeAbsolute directory
|
||||||
|
|
||||||
|
let params = S.ServerParams { S.directory = absoluteDirectory
|
||||||
, S.domain = domain
|
, S.domain = domain
|
||||||
, S.port = portNumber
|
, S.port = portNumber
|
||||||
, S.ssl = ssl
|
, S.ssl = ssl
|
||||||
|
Loading…
Reference in New Issue
Block a user