Repository navigation
Expand file tree
/
Copy pathopenshift.html
More file actions
70 lines (59 loc) · 2.36 KB
/
Copy pathopenshift.html
File metadata and controls
70 lines (59 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
title: Deploying to Openshift
sitemap:
priority: 0.7
lastmod: 2014-09-08T00:00:00-00:00
---
<h1><i class="fa fa-cloud-upload"></i> [BETA] Deploying to Openshift</h1>
<p><b>WARNING!</b> This is a new sub-generator, of <b>BETA</b> quality. Use it at your own risk! Feedback is highly welcome!</p>
<p>This sub-generator allows to deploy automatically your JHipster application to the <a href="https://www.openshift.com/" target="_blank">Openshift cloud</a>.</p>
<h2>Limitations</h2>
<p>
This sub-generator has a few limitations:
<ul>
<li>You can only use it with a MySQL database, as this is what Openshift provides by default</li>
<li>You can only use it with the Grunt option (which is the recommended default), as it's the only one providing tasks for deploying</li>
<li>You can only use it with the Maven option (which is the recommended default), as it's the only one supported by Openshift</li>
</ul>
</p>
<h2>Running the sub-generator</h2>
<p>
Before running the sub-generator, you need to install the <a href="https://developers.openshift.com/en/getting-started-client-tools.html" target="_blank">OpenShift Client Tools</a>, and have a OpenShift account created.
</p>
<p>
To deploy your application to Openshift, type:
</p>
<p>
<code>
yo jhipster:openshift
</code>
</p>
<p>
This should package your application in "production" mode, create a Openshift application (with a MySQL database), upload your code, and start the application.
</p>
<p><i>If you use the free version of Openshift, please note that the "small" gear is really slow!</i></p>
<h2>Updating your deployed application</h2>
<p>
When your application is already deployed, you can prepare a new deployment by typing:
</p>
<p>
<code>
grunt deployOpenshift
</code>
</p>
<p>
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):
</p>
<p>
<code>
git push
</code>
</p>
<h2>More information</h2>
<p>
<ul>
<li><a href="http://docs.spring.io/spring-boot/docs/current/reference/html/cloud-deployment-openshift.html" target="_blank">Spring Boot Openshift documentation</a></li>
<li><a href="https://www.openshift.com/blogs/paas-websockets" target="_blank">Running Websockets on Openshift</a></li>
</ul>
</p>