From 089fc33a4a806239c24d580d16f68d272bea86e1 Mon Sep 17 00:00:00 2001 From: abumalick Date: Sat, 27 Oct 2018 10:54:23 +0200 Subject: [PATCH] Updating services.md > Invoking Serverless locally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Here is an easier way to invoke a local serverless installation. - executables have symlinks in `node_modules/.bin` folder - npx is an easier way to invoke these local executables: (ref: https://blog.scottlogic.com/2018/04/05/npx-the-npm-package-runner.html) Thanks for serverless framework 👍 --- docs/providers/openwhisk/guide/services.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/providers/openwhisk/guide/services.md b/docs/providers/openwhisk/guide/services.md index 8c4862484..c1487b547 100644 --- a/docs/providers/openwhisk/guide/services.md +++ b/docs/providers/openwhisk/guide/services.md @@ -196,5 +196,10 @@ To execute the locally installed Serverless executable you have to reference the Example: ``` -node ./node_modules/serverless/bin/serverless deploy +node node_modules/.bin/serverless deploy +``` + +Or with npx (bundled with npm >= 5.2.0) +``` +npx serverless deploy ```