diff --git a/INSTALL.md b/INSTALL.md index 90b2d8a0..6309b187 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -101,7 +101,7 @@ Finally, you're ready to use Fission! ``` $ fission env create --name nodejs --image fission/node-env - $ echo 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }' > hello.js + $ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js $ fission function create --name hello --env nodejs --code hello.js diff --git a/README.md b/README.md index ccd835fc..229fb4b0 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Usage $ fission env create --name nodejs --image fission/node-env # A javascript one-liner that prints "hello world" - $ echo 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }' > hello.js + $ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js # Upload your function code to fission $ fission function create --name hello --env nodejs --code hello.js @@ -172,7 +172,7 @@ Finally, you're ready to use Fission! ``` $ fission env create --name nodejs --image fission/node-env - $ echo 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }' > hello.js + $ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js $ fission function create --name hello --env nodejs --code hello.js diff --git a/charts/fission/templates/NOTES.txt b/charts/fission/templates/NOTES.txt index 7f084b59..6f65927b 100644 --- a/charts/fission/templates/NOTES.txt +++ b/charts/fission/templates/NOTES.txt @@ -27,7 +27,7 @@ FISSION_URL should be prefixed with a http://. (FISSION_ROUTER is only needed fo $ fission env create --name nodejs --image fission/node-env - $ echo 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }' > hello.js + $ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js $ fission function create --name hello --env nodejs --code hello.js