Using Jelastic with Codenvy

Use our Factory to create a Project in Codenvy and integrate it with Jelastic:

Create environment

  • Log into your Jelastic account and click the Create environment button.
  • Select Tomcat 7 (or any other Java application server) and specify the cloudlet consumption limits for it. Then pick Maven build node and set up the resource limits for this node. Next, type your environment name and click Create

jelastic

In a few minutes your environment with all the chosen nodes will be created

jelastic_created

Create Codenvy project

  • Log into your Codenvy workspace (or sign up and create one if you haven’t done so yet).
  • Click Project > New > Create Project… to start your own project or Project > New > Import from GitHub… to import an existing one from GitHub.
  • Select the type of your new project (Java Web Application in our case) and pick None in the available PaaS list.
  •  Select a suitable template for your Java project (e.g. Java Web Project) and click Finish.
  • When your project is successfully created (in this tutorial we use a simple HelloWorld app), initialize your local Git repository.
  • You’ll see the output info, which confirms that your repository was successfully initialized.
  • Click Git > Git URL (Read-only)…
  • Copy the URL to your repository in the appeared window.

Deploy Java application

  • Go back to the Jelastic dashboard and click Add project.

jelastic_project

  • In the appeared window enter the name of your Jelastic project and paste the link to your Git repository that you copied from the Codenvy dashboard. After that, type the name of the branch, login and password (if it’s a private Git repository) and choose the environment for further project deployment.

The Jelastic system can easily check if you have made any commits to your Git repository and build and deploy your Java project automatically based on these commits. To enable this feature, tick the Check and Auto-deploy Updates check-box and specify the time period for verification in minutes.

add_project

  • In a few seconds your Jelastic project will appear on the dashboard

jelastic_project_2

  • Click the Build and Deploy button to get your project up and running right in the Cloud

jelastic_project_3

  • In a few minutes open your Java application in a web browser

jelastic_project_4

As you can see, your Java application developed with Codenvy IDE was successfully deployed to the Cloud.

codenvy_app

Now you can work with your code using Codenvy Cloud IDE! Update your project automatically, through the Git repository without having to switch to the Jelastic dashboard of GitHub each time you need to deploy software updates. Enjoy Jelastic Java cloud hosting and be sure that everything is up-to-date in your production environments, automatically.