[BETA] Deploying to Openshift

WARNING! This is a new sub-generator, of BETA quality. Use it at your own risk! Feedback is highly welcome!

This sub-generator allows to deploy automatically your JHipster application to the Openshift cloud.

Limitations

This sub-generator has a few limitations:

  • You can only use it with a MySQL database, as this is what Openshift provides by default
  • You can only use it with the Grunt option (which is the recommended default), as it's the only one providing tasks for deploying
  • You can only use it with the Maven option (which is the recommended default), as it's the only one supported by Openshift

Running the sub-generator

Before running the sub-generator, you need to install the OpenShift Client Tools, and have a OpenShift account created.

To deploy your application to Openshift, type:

yo jhipster:openshift

This should package your application in "production" mode, create a Openshift application (with a MySQL database), upload your code, and start the application.

If you use the free version of Openshift, please note that the "small" gear is really slow!

Updating your deployed application

When your application is already deployed, you can prepare a new deployment by typing:

grunt deployOpenshift

Then you can check your application, which is ready for deployment, in your "deploy/openshift" folder. If you are ready to deploy, you can push it to production, by typing (in your "deploy/openshift" folder):

git push

More information