Skip to content

Commit 58a760b

Browse files
authored
Merge pull request #433 from apache/update-gradle-readme-and-minor-css-fix
Update gradle readme and minor css fix
2 parents 1c881c6 + 4a71997 commit 58a760b

7 files changed

Lines changed: 21 additions & 12 deletions

File tree

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,30 @@ The output can be found in the `build/dist` directory.
7474

7575
```bash
7676
./gradlew buildGuide --console=plain
77-
7877
```
7978
The output can be found in the `build/dist` directory.
8079

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+
```
8286

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
8488

89+
The easiest way to work locally is to generate the site and set up your Webserver to serve build/dist.
8590

86-
### Using MAMP
91+
### Using jwebserver
8792

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:
8994

90-
![](docs/mamp.png)
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
99+
URL http://127.0.0.1:8000/
100+
```
91101

92102
### Using Python
93103

assets/stylesheets/screen.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ li {
273273
.content {
274274
margin: 0 auto;
275275
z-index: 2;
276-
overflow: auto;
277276
}
278277

279278
.content {

docs/mamp.png

-580 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.jar

-59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)