Deploy a Quarkus or Micronaut App From Git on CM Cloud App Hosting
CM Cloud App Hosting runs your Quarkus or Micronaut application without you touching nginx, systemd, or a JVM install — push code, and the platform handles the rest from $7.99/mo (XAF 5,000 / €7.49).
Java microservice frameworks like Quarkus and Micronaut are built for cloud-native deployment: fast startup times, low memory footprint, and clean HTTP layers that map perfectly onto a managed runtime. CM Cloud’s App Hosting platform manages the full runtime layer — process supervision, port binding, and service restart — so your CI/CD pipeline can wire directly into it via a deploy hook.
Why Quarkus and Micronaut Suit App Hosting
Both frameworks compile to a standard JAR (or native binary) and expose an HTTP port. That is exactly what a managed app runtime expects.
- Quarkus starts in milliseconds, uses Vert.x under the hood, and produces a thin runnable JAR with
./mvnw package. - Micronaut avoids reflection at runtime, keeping cold-start times low and making it predictable in a supervised process model.
Neither framework requires a heavyweight application server. The JAR is the server — CM Cloud’s platform just keeps it alive.
Runtime Support: Java Plans
Java runtimes are available on App Business and higher plans. Starter is $7.99/mo and covers static, Node.js, Python, and PHP runtimes — upgrade to App Business for Java.
When you create a new application, select the Java runtime. You specify:
- Build command — e.g.
./mvnw package -DskipTests - Run command — e.g.
java -jar target/quarkus-app/quarkus-run.jarorjava -jar build/libs/myapp-all.jar - Port — Quarkus defaults to
8080; Micronaut also defaults to8080. Match whateverquarkus.http.portormicronaut.server.portis set to.
CM Cloud binds that port to the public HTTPS endpoint automatically. You do not configure nginx.
Connecting Your Git Repository
Git-based deploys on CM Cloud use a deploy hook — a secret URL you generate inside the portal. No SSH access is required or provided.
Step 1 — Generate the deploy hook
In your CM Cloud portal, open your app → Deploy Settings → Generate Deploy Hook. Copy the HTTPS URL.
Step 2 — Add it to GitHub Actions
Create .github/workflows/deploy.yml:
name: Deploy to CM Cloud
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build JAR
run: ./mvnw package -DskipTests # or ./gradlew build for Micronaut/Gradle
- name: Trigger CM Cloud deploy
run: curl -s -X POST "${{ secrets.CMCLOUD_DEPLOY_HOOK }}"
Store your hook URL as the CMCLOUD_DEPLOY_HOOK secret in GitHub → Settings → Secrets.
Step 3 — Push
Every push to main builds the JAR locally in the Actions runner, then signals CM Cloud to pull the latest code and restart the supervised process. A failed deploy rolls back automatically — your previous version keeps serving with no downtime on your side.
Important: CM Cloud does not support on-demand rollback to an arbitrary earlier release. The automatic rollback on a bad deploy is the safety net.
Environment Variables and Secrets
Neither Quarkus nor Micronaut should have database passwords or API keys in application.properties committed to Git.
Set them in the CM Cloud portal under Environment Variables. Both frameworks read standard environment variables at startup:
- Quarkus: prefix with
QUARKUS_or use%prod.profile overrides in properties. - Micronaut: use
MICRONAUT_prefix conventions or plainMY_SECRETmapped inapplication.yml.
For a full walkthrough of safe secrets management on CM Cloud see the published guide on App Hosting Environment Variables.
Database: Managed PostgreSQL Add-On
App Hosting plans include no bundled database. For Quarkus you likely want Hibernate Reactive or Panache pointing at Postgres; for Micronaut you will use Micronaut Data JPA or R2DBC.
Add Managed PostgreSQL as a separate add-on in the portal. You receive a TLS connection string — set it as an environment variable (QUARKUS_DATASOURCE_JDBC_URL or DATASOURCES_DEFAULT_URL) and your ORM connects on startup.
Alternatively, connect any external Postgres instance the same way. The app does not care where the database lives as long as the connection string is correct.
Comparison: CM Cloud App Hosting vs Alternatives for Java
| Provider | Starter Price (USD) | XAF | EUR | Java Support | Git Deploy Hook | Auto-Rollback on Failure |
|---|---|---|---|---|---|---|
| CM Cloud | $7.99/mo | XAF 5,000 | €7.49 | Yes (Business+) | Yes — webhook POST | Yes |
| Railway | ~$5/mo hobby min (usage-based) | N/A | N/A | Yes (Dockerfile) | Via GitHub integration | No native auto-rollback |
| Render | $7/mo (individual service) | N/A | N/A | Yes (Dockerfile or buildpack) | Yes | Manual re-deploy |
| Heroku | $5/mo (eco dynos) | N/A | N/A | Yes (buildpack) | Yes | No |
CM Cloud is the only provider in this table that quotes prices in XAF, making budget planning straightforward for teams in Cameroon and West Africa. See the full plan comparison at cmcloudhosting.com/pricing.
Quarkus Native Builds: What to Know
Quarkus supports native compilation via GraalVM, producing a binary with ~10 ms startup. Native builds require GraalVM installed in the build environment.
If you want native, build the binary in GitHub Actions (using the graalvm/setup-graalvm action) and deploy the resulting binary. Set your run command in the portal to ./application -Dquarkus.http.port=8080 instead of java -jar ....
Micronaut supports the same pattern with its GraalVM integration. Native binaries reduce memory usage significantly — useful for staying within plan resource limits.
PocketBase: Add Auth and Realtime Without a Separate Backend
If your Quarkus or Micronaut service is a backend API, your frontend may still need user authentication and realtime subscriptions. PocketBase on CM Cloud ($4.99/mo / XAF 3,000 / €4.69) is a standalone service that provides:
- Email + OAuth login
- Realtime subscriptions
- File storage
- Admin dashboard
Pair a PocketBase instance with your Java API backend: PocketBase handles auth, your Quarkus/Micronaut service handles business logic. Both run independently on CM Cloud with no extra infrastructure.
AI Credits
All CM Cloud plans include free AI credits. Additional credits top up from $1.00 / XAF 500 / €0.95 per 25 credits.
Pricing at a Glance
| Plan | USD | XAF | EUR |
|---|---|---|---|
| App Hosting Starter | $7.99/mo | XAF 5,000 | €7.49 |
| PocketBase Backend | $4.99/mo | XAF 3,000 | €4.69 |
| Managed PostgreSQL | Add-on — see portal | — | — |
| Business Email | $1.99/user/mo | XAF 1,250 | €1.89 |
Full plan details: cmcloudhosting.com/pricing.
Get Your Java App Live Today
Quarkus and Micronaut are production-ready frameworks that deserve a production-ready host. CM Cloud App Hosting gives you a managed Java runtime, CI/CD via deploy hook, automatic rollback on failure, and transparent pricing in USD, XAF, and EUR — with no server administration required.