Steps to deploy JHipster with Qovery
Sign in to the Qovery web interface.
JHipster sample application
Get a copy of the sample source code of JHipster sample project by forking it.
To deploy your JHipster application connected to a PostgreSQL, you can use our sample code and follow the configuration steps.
In this example we are using PostgreSQL v11.5.
Create a new project
Create a new environment
Create a new application
To follow the guide, you can fork and use our repository
Use the forked repository (and branch master) while creating the application in the repository field:
Select application port
After the application is created:
- Navigate application settings
- Select Port
- Add port 8080
In the settings General section, set Build Mode to Dockerfile and set Dockerfile path as "Dockerfile"
Deploy a PostgreSQL database
In your envioronment view, click on Add and Database buttons:
In the popup window while adding a database, choose your name, select PostgreSQL and 11.5 version.
Connect JHipster to PostgreSQL
Credentials of your PostgreSQL database are available via Environment Variables and Secrets. Qovery injects environment vars at the runtime.
You can learn more about environment variables and secrets here.
To list all the environment variables available to your JHipster application, you can open Environment Variables and Secret tabs in your application window:
Deploy the app on Qovery
All you have to do now is to navigate to your application and click Deploy button
That's it. Watch the status and wait till the app is deployed.
Trigger a new deployment
Now, you can play with the sample JHipster application and commit & push your changes. Qovery detects your actions and triggers new builds and application deployments. Any change you make will be reflected in your deployed application automatically.
Congratulations! Now, you know how to deploy your JHipster app with PostgreSQL in just a few steps.
Do you have any feedback about this tutorial? Let us know what you think on Discord, and join our wonderful dev community of +5500 devs.