You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,20 +74,30 @@ The output can be found in the `build/dist` directory.
74
74
75
75
```bash
76
76
./gradlew buildGuide --console=plain
77
-
78
77
```
79
78
The output can be found in the `build/dist` directory.
80
79
81
-
## Running the website locally
80
+
This will generate links to https://grails.apache.org if you want the links to point to your local webserver you need to
81
+
set this environment variable before running the build commands (port number depend on webserver...):
82
+
83
+
```bash
84
+
export GRAILS_WS_URL=http://127.0.0.1:8000
85
+
```
82
86
83
-
The easiest way to work locally is to generate the site and setup your Webserver to serve build/dist.
87
+
## Running the website locally
84
88
89
+
The easiest way to work locally is to generate the site and set up your Webserver to serve build/dist.
85
90
86
-
### Using MAMP
91
+
### Using jwebserver
87
92
88
-
Go to [MAMP](https://www.mamp.info/en/mamp/)for installation instructions:
93
+
JDK 19+ comes with a simpel webserver called [jwebserver](https://docs.oracle.com/en/java/javase/25/docs/specs/man/jwebserver.html) that can be used for serving static files:
89
94
90
-

95
+
```bash
96
+
$ jwebserver -d $(pwd)/build/dist
97
+
Binding to loopback by default. For all interfaces use "-b 0.0.0.0" or "-b ::".
98
+
Serving /home/user/grails-static-website/build/dist and subdirectories on 127.0.0.1 port 8000
0 commit comments