From 0f2f4aa5502bf0f4b05872612418e85ae710c234 Mon Sep 17 00:00:00 2001 From: Kyle Benson Date: Mon, 24 Oct 2016 15:19:30 -0400 Subject: [PATCH 1/5] Modified HTML file to display blue, with code to add green to highlight A/B testing --- views/index.html | 94 ++---------------------------------------------- 1 file changed, 2 insertions(+), 92 deletions(-) diff --git a/views/index.html b/views/index.html index aea7910..3efcb97 100644 --- a/views/index.html +++ b/views/index.html @@ -177,8 +177,9 @@ p { p + h2 { margin-top: 2em; } + html { - background: #f5f5f5; + background: #106fb7; height: 100%; } code{ @@ -214,96 +215,5 @@ pre { -
-
-

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 -

- <%} %> -
-
- -
- -
-
From 7e5962be6a735eb59e334c577ea45b8640238cf8 Mon Sep 17 00:00:00 2001 From: Kyle Benson Date: Mon, 24 Oct 2016 15:34:53 -0400 Subject: [PATCH 2/5] Fixed the actual location for background color --- views/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/views/index.html b/views/index.html index 3efcb97..225cf84 100644 --- a/views/index.html +++ b/views/index.html @@ -42,7 +42,8 @@ section{ display: block; } body { - color: #404040; + + background: #106fb7; font-family: "Helvetica Neue",Helvetica,"Liberation Sans",Arial,sans-serif; font-size: 14px; line-height: 1.4; @@ -177,7 +178,7 @@ p { p + h2 { margin-top: 2em; } - + html { background: #106fb7; height: 100%; From 93ccd5a16d4c76cee0122e3cc1c761b6b6f1c1e5 Mon Sep 17 00:00:00 2001 From: Kyle Benson Date: Mon, 24 Oct 2016 15:56:14 -0400 Subject: [PATCH 3/5] New branch to ABtest features --- .gitignore | 3 ++- views/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 57289ac..1b7e22c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules/ -npm-debug.log \ No newline at end of file +npm-debug.log +.DS_Store diff --git a/views/index.html b/views/index.html index 225cf84..f223207 100644 --- a/views/index.html +++ b/views/index.html @@ -43,7 +43,7 @@ section{ } body { - background: #106fb7; + background: #24b710; font-family: "Helvetica Neue",Helvetica,"Liberation Sans",Arial,sans-serif; font-size: 14px; line-height: 1.4; From bfc60f476dfdf99ad9cedfb9da72dfb2c93d74db Mon Sep 17 00:00:00 2001 From: Kyle Benson Date: Mon, 24 Oct 2016 16:35:17 -0400 Subject: [PATCH 4/5] Last dumb fix for AB --- views/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.html b/views/index.html index f223207..bc56ab0 100644 --- a/views/index.html +++ b/views/index.html @@ -180,7 +180,7 @@ p + h2 { } html { - background: #106fb7; + background: #24b710; height: 100%; } code{ From 61f3abd6cac24b10799276de394793b2b1116531 Mon Sep 17 00:00:00 2001 From: Kyle Benson Date: Mon, 24 Oct 2016 20:51:10 -0400 Subject: [PATCH 5/5] Commiting awesome new GREEN color --- views/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/views/index.html b/views/index.html index bc56ab0..42e307f 100644 --- a/views/index.html +++ b/views/index.html @@ -42,8 +42,7 @@ section{ display: block; } body { - - background: #24b710; + background: #106fb7; font-family: "Helvetica Neue",Helvetica,"Liberation Sans",Arial,sans-serif; font-size: 14px; line-height: 1.4; @@ -178,9 +177,9 @@ p { p + h2 { margin-top: 2em; } - + html { - background: #24b710; + background: #106fb7; height: 100%; } code{