gpt4 book ai didi

yesod - 如何更改 "yesod devel"使用的设置(例如端口)?

转载 作者:行者123 更新时间:2023-12-02 08:33:22 27 4
gpt4 key购买 nike

我知道我可以将端口号放在 config/settings.yml 中,但在运行 yesod devel 时它们似乎被忽略了。

最佳答案

您想使用 -p 选项。更一般地说:

$ yesod devel --help
Usage: yesod devel [-d|--disable-api] [-s|--success-hook COMMAND]
[-f|--failure-hook COMMAND] [-t|--event-timeout N]
[-b|--builddir ARG] [-i|--ignore DIR]
[-e|--extra-cabal-arg ARG] [-p|--port N]
[-x|--proxy-timeout N] [-n|--disable-reverse-proxy]
[-c|--interrupt-only]
Run project with the devel server

Available options:
-d,--disable-api Disable fast GHC API rebuilding
-s,--success-hook COMMAND
Run COMMAND after rebuild succeeds
-f,--failure-hook COMMAND
Run COMMAND when rebuild fails
-t,--event-timeout N Force rescan of files every N seconds
-b,--builddir ARG Set custom cabal build directory, default `dist'
-i,--ignore DIR ignore file changes in DIR
-e,--extra-cabal-arg ARG pass extra argument ARG to cabal
-p,--port N Devel server listening port
-x,--proxy-timeout N Devel server timeout before returning 'not ready'
message (in seconds, 0 for none)
-n,--disable-reverse-proxy
Disable reverse proxy
-c,--interrupt-only Disable exiting when enter is pressed

关于yesod - 如何更改 "yesod devel"使用的设置(例如端口)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24485158/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com