From 3ed7aafccf77aca4ea955214f59358ce7a872db2 Mon Sep 17 00:00:00 2001 From: igotit Date: Tue, 22 Aug 2017 13:06:38 +0900 Subject: [PATCH] update --- views/index.html | 400 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 300 insertions(+), 100 deletions(-) diff --git a/views/index.html b/views/index.html index 5718fe1..aea7910 100644 --- a/views/index.html +++ b/views/index.html @@ -1,109 +1,309 @@ - + + + + + + Welcome to OpenShift - - - farmper - - - - - - - - - - - + + + + + +
+
+

Welcome to your Node.js application on OpenShift

+
+ + +
+
+
+

How to use this example application

+

For instructions on how to use this application with OpenShift, start by reading the Developer Guide.

+ +

Deploying code changes

+

+ The source code for this application is available to be forked from the OpenShift GitHub repository. + You can configure a webhook in your repository to make OpenShift automatically start a build whenever you push your code: +

+ +
    +
  1. From the Web Console homepage, navigate to your project
  2. +
  3. Click on Browse > Builds
  4. +
  5. Click the link with your BuildConfig name
  6. +
  7. Click the Configuration tab
  8. +
  9. Click the "Copy to clipboard" icon to the right of the "GitHub webhook URL" field
  10. +
  11. Navigate to your repository on GitHub and click on repository settings > webhooks > Add webhook
  12. +
  13. Paste your webhook URL provided by OpenShift
  14. +
  15. Leave the defaults for the remaining fields — that's it!
  16. +
+

After you save your webhook, if you refresh your settings page you can see the status of the ping that Github sent to OpenShift to verify it can reach the server.

+

Note: adding a webhook requires your OpenShift server to be reachable from GitHub.

+ +

Working in your local Git repository

+

If you forked the application from the OpenShift GitHub example, you'll need to manually clone the repository to your local system. Copy the application's source code Git URL and then run:

+ +
$ git clone <git_url> <directory_to_create>
+
+# Within your project directory
+# Commit your changes and push to OpenShift
+
+$ git commit -a -m 'Some commit message'
+$ git push
+ +

After pushing changes, you'll need to manually trigger a build if you did not setup a webhook as described above.

+ +
+ +
+
+ +

Managing your application

+ +

Documentation on how to manage your application from the Web Console or Command Line is available at the Developer Guide.

+ +

Web Console

+

You can use the Web Console to view the state of your application components and launch new builds.

+ +

Command Line

+

With the OpenShift command line interface (CLI), you can create applications and manage projects from a terminal.

+ +

Development Resources

+ + +

Request information

+

Page view count: + <% if (pageCountMessage) { %> + <%=pageCountMessage%> +

+

DB Connection Info:

+ + + +
Type:<%= dbInfo.type %>
URL:<%= dbInfo.url %>
+
+ <% } else { %> + No database configured +

+ <%} %> +
+
+ + +
+ +