Skip to content

Commit

Permalink
add startup flag
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Jan 18, 2024
1 parent 4251877 commit df4bc81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ yarn hydrooj addon add /root/addon

- `--port=2333` 指定启动端口
- `--debug` 启用开发模式
- `--watch` 启用热重载(实验性)

使用 `yarn debug --port=2333 --watch` 启动 Hydro,并在后台运行 `yarn build:ui:dev`,可以对前端源码进行实时转译,在反复修改时可节省编译时间。启动完成后,您可以在 8000 端口访问到 Hydro 实例,且前端的任何更改将即时生效。(后端热重载可能存在 bug,部分模块修改后可能仍需重启才能生效)
请注意:此功能仅在启用了 `@hydrooj/ui-default` 插件的情况下才会生效。
Expand Down

0 comments on commit df4bc81

Please sign in to comment.