This project provides a starter kit for Apache Tomcat hosted on Platform.sh. Tomcat itself is downloaded on the fly in the build hook based on the provided pom.xml
file.
Apache Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and WebSocket technologies.
- Java 11
- Automatic TLS certificates
- Maven-based build
The following files and additions make the framework work. If using this project as a reference for your own existing project, replicate the changes below to your project.
.platform/routes.yaml
: Platform.sh allows you to define the routes..platform/services.yaml
: Platform.sh allows you to completely define and configure the topology and services you want to use on your project..platform.app.yaml
: You control your application and the way it will be built and deployed on Platform.sh via a single configuration file.- An additional library dependency,
platformsh/config-reader-java
, has been added. It provides convenience wrappers for accessing the Platform.sh environment variables.