Deploy your webapp on Clever Cloud (EN)

Gradle  Spring 

Clever Cloud

Clever cloud is a platform designed by developers for developers.

clever cloud

You Write Code. They Run It.

When you write code, you push sources on Github. Clever Cloud is able to install your Github app

Sign in on with your account. If you haven’t an account you have to create one

When you are connected, you can create a new account on

Use your github account

It’s important to create your account from your Github account. When you receive this email, click on "Join CoursEmse2019" Button


EMSE space will be added on your clever cloud environment


Before this deployment you have to create a folder called "clevercloud" in your Spring Boot project

Inside, add a file gradle.json. This file will contain

  "build": {
    "type": "gradle",
    "goal": "assemble"
  "deploy": {
    "jarName": "./build/libs/faircorp-0.0.1-SNAPSHOT.jar"

To know the name of your jar go on folder ./build/libs/

Push your change on a Github repository. If can create a new directory


We will create a new app on the Clever Cloud console in the EMSE organization

Clever Cloud

You will create a new application. This application will be generated from a Github repository

Clever Cloud

You have to choose the kind of your application. For a Spring Boot application it will be a Java and Gradle application

Clever Cloud

The next step consist to choose the type of your server. You can keep the default configuration or click on the edit button.

Clever Cloud

You have several available configurations but more your server will be powerful more the price is expensive

Clever Cloud

You can use a specific name. It’s important when you have several apps. In our case you have to use faircorp-firstname-lastname. For me for example the app should be called faircorp-guillaume-ehret

Clever Cloud

In the next step you can define environment variables. It’s not very important in our example. You can click on the Next button

Clever Cloud

Installation starts and you have to wait several minutes.

Clever Cloud

You can explore different section to update your parameters

  • Overview : contains buttons to reinstall your app and the link to access to your app

  • Information

  • Scalability

  • Domain names : helps to personalize the URL of its application or parameter its own domain main

  • Environment variables

  • Service dependencies

  • Exposed configuration

  • Activity

  • Logs

  • Metrics

Define a custom URL to access to your application and click on the star to use it by default


Now you can use your app deployed on the Internet. This app will be automatically redeployed, when you will push a new commit on Github.