This project shows how to deploy a Vert.x 3 applications to OpenShift V2. The same application is deployed using the two proposed approaches:
-
using the quickstart based on the Do-It-Yourself cartridge (low level integration, without scalability support)
-
using the vert.x 3 cartridge
This project is just an example of the structure and is not directly deployable oon OpenShift. You needs to log in on OpenShift and create the application with. Follows the provided guides:
The application is very simple and just creates a HTTP server. Notice that the application listens on a host and port accessible from the system properties. Openshift requires the application to be bound to this address and port.
This version uses the Do-It-Yourself cartridge. It’s a low level integration, and it does not support (Openshift) scalability. The application fat jar is placed into the application
directory. The provided action hooks manages the installation, start and stop of the application: