mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
Add flag --document-root for user with gf --server
This can make it easier to test cloud service updates before installing them.
This commit is contained in:
@@ -71,8 +71,11 @@ shell opts files = loop opts =<< runSIO (importInEnv emptyGFEnv opts files)
|
||||
|
||||
#ifdef SERVER_MODE
|
||||
mainServerGFI opts0 port files =
|
||||
server port (execute1 opts) =<< runSIO (importInEnv emptyGFEnv opts files)
|
||||
where opts = beQuiet opts0
|
||||
server port root (execute1 opts)
|
||||
=<< runSIO (importInEnv emptyGFEnv opts files)
|
||||
where
|
||||
root = flag optDocumentRoot opts
|
||||
opts = beQuiet opts0
|
||||
#else
|
||||
mainServerGFI opts files =
|
||||
error "GF has not been compiled with server mode support"
|
||||
|
||||
Reference in New Issue
Block a user