From ba2d14b19f436fb65d7d8422476c1aa55e799f58 Mon Sep 17 00:00:00 2001 From: Akram Ben Aissi Date: Thu, 12 Apr 2018 09:16:35 +0200 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4039389..350024c 100755 --- a/README.md +++ b/README.md @@ -56,24 +56,17 @@ To experiment with an A/B deployment scenario, follow the instructions in the bl ## Developing on the fly in Openshift3 Edit the buildconfig: - - -- change from Git to binary - source: - type: Git - git: - uri: 'https://github.com/eformat/cotd.git' - secrets: null - - -- to this - source: - type: Binary - - -- then build with - oc start-build --from-dir=. cotd - +``` + oc export bc/cotd | sed s/Source/Binary/ | oc replace -f - + ``` + then build with + ``` + oc start-build --from-dir=. cotd +``` You may also wish to enable live reload for php image (don't do this in prod) - - oc set env dc/cotd OPCACHE_REVALIDATE_FREQ=0 +``` +oc set env dc/cotd OPCACHE_REVALIDATE_FREQ=0 +``` ## Parse the pods running statistics