From 5fd6ad482ce060fcd57aa93cf42c018f28aad9b3 Mon Sep 17 00:00:00 2001 From: brennv Date: Tue, 12 Apr 2016 11:31:37 -0700 Subject: [PATCH] Fixed oc commands Added "set" to env and "build/" to logs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cff86c3..f591cc4 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ If the build is not yet started (you can check by running `oc get builds`), star $ oc start-build nodejs-ex --follow -You can alternatively leave off `--follow` and use `oc logs nodejs-ex-n` where *n* is the number of the build to track the output of the build. +You can alternatively leave off `--follow` and use `oc logs build/nodejs-ex-n` where *n* is the number of the build to track the output of the build. #### Deploy the app @@ -166,7 +166,7 @@ To take a look at environment variables set for each pod, run `oc env pods --all We need to add the environment variable `MONGO_URL` to our Node.js web app so that it will utilize our MongoDB, and enable the "Page view count" feature. Run: - $ oc env dc/nodejs-ex MONGO_URL='mongodb://admin:secret@172.30.0.112:27017/mongo_db' + $ oc set env dc/nodejs-ex MONGO_URL='mongodb://admin:secret@172.30.0.112:27017/mongo_db' Then check `oc status` to see that an updated deployment has been kicked off: