No description, website, or topics provided.
Shell Java
Switch branches/tags
Nothing to show
Clone or download
kolorobot Merge pull request #3 from Kravs/patch-1
there is JDK already :)
Latest commit 032906c Mar 22, 2017
Failed to load latest commit information.
.openshift/action_hooks there is JDK already :) Mar 22, 2017
src ! Feb 8, 2015
.gitignore Initial application and configuration Feb 8, 2015 Update Feb 13, 2015
build.gradle Formatting Feb 8, 2015


Before we can start building the application, we need to have an OpenShift free account and client tools installed.

Step 1: Create DIY application

To create an application using client tools, type the following command:

rhc app create <app-name> diy-0.1

This command creates an application using DIY cartridge and clones the repository to directory.

Step 2: Delete Template Application Source code

OpenShift creates a template project that can be freely removed:

git rm -rf .openshift diy misc

Commit the changes:

git commit -am "Removed template application source code"

Step 3: Pull Source code from GitHub

git remote add upstream
git pull -s recursive -X theirs upstream master

Step 4: Push changes

The basic template is ready to be pushed to OpenShift:

git push

The initial deployment (build and application startup) will take some time (up to several minutes). Subsequent deployments are a bit faster:

remote: Starting DIY cartridge
remote: XNIO NIO Implementation Version 3.3.0.Final
remote: b.c.e.u.UndertowEmbeddedServletContainer : Undertow started on port(s) 8080 (http)
remote: Started DemoApplication in 15.156 seconds (JVM running for 17.209)

You can now browse to: http://<app-name> and you should see:

	"status": "UP",

Under the hood