Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into debuggingGuide
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-roberts committed Aug 28, 2024
2 parents c283e79 + 7ef6c65 commit 249b846
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
19 changes: 17 additions & 2 deletions TRYLATESTBITSINPROD.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,25 @@ top of your web application and change the entrypoint to boot with these jars in
```
git clone https://github.com/GoogleCloudPlatform/appengine-java-standard.git
cd appengine-java-standard
mvn clean install
./mvnw clean install
```

Let's assume the current built version is `2.0.30-SNAPSHOT`.
Let's assume the current build version is `2.0.30-SNAPSHOT`.

See the output of the runtime deployment module which contains all the jars needed by the runtime:


```
ls runtime/deployment/target/runtime-deployment-*/
runtime-impl-jetty12.jar runtime-main.jar runtime-shared-jetty12.jar
runtime-impl-jetty9.jar runtime-shared-jetty12-ee10.jar runtime-shared-jetty9.jar
```

These jars are pushed in Maven Central as well under artifact com.google.appengine:runtime-deployment.
For example, look at all the pushed versions in https://repo1.maven.org/maven2/com/google/appengine/runtime-deployment

The idea is to add these runtime jars inside your web application during deployment and change the entry point to start using these runtime jars instead of the ones provided by default by the App Engine runtime.

Add the dependency for the GAE runtime jars in your application pom.xml file:

```
Expand Down
18 changes: 17 additions & 1 deletion debugging.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!--
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

# Google App Engine Java Debugging Guide

## Jetty Debug Logging
Expand Down Expand Up @@ -31,4 +47,4 @@ To enable a Jetty Server Dump after the `AppEngineWebAppContext` is started (whi
<system-properties>
<property name="jetty.server.dumpAfterStart" value="true"/>
</system-properties>
```
```

0 comments on commit 249b846

Please sign in to comment.