From 06b93293a6a2e6296bd3704d1b535cb89b033dd5 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 1 Dec 2024 13:10:20 +0900 Subject: [PATCH] Update build.md about testing on Jetty from sbt (#3650) --- doc/build.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/build.md b/doc/build.md index 1116b6c67..42be861e0 100644 --- a/doc/build.md +++ b/doc/build.md @@ -13,7 +13,7 @@ Run for Development If you want to test GitBucket, type the following command in the root directory of the source tree. ```shell -$ sbt ~jetty:start +$ sbt ~container:start ``` Then access `http://localhost:8080/` in your browser. The default administrator account is `root` and password is `root`. @@ -24,11 +24,11 @@ You can modify the logging configuration by editing `src/main/resources/logback- Note that HttpSession is cleared when auto-reloading happened. This is a bit annoying when developing features that requires sign-in. You can keep HttpSession even if GitBucket is restarted by enabling this configuration in `build.sbt`: -https://github.com/gitbucket/gitbucket/blob/d5c083b70f7f3748d080166252e9a3dcaf579648/build.sbt#L292 +https://github.com/gitbucket/gitbucket/blob/3dcc0aee3c4413b05be7c03476626cb202674afc/build.sbt#L292 Or by launching GitBucket with the following command: ```shell -sbt '; set Jetty/javaOptions += "-Ddev-features=keep-session" ; ~jetty:start' +sbt '; set Container/javaOptions += "-Ddev-features=keep-session" ; ~container:start' ``` Note that this feature serializes HttpSession on the local disk and assigns all requests to the same session