Instructions in the README were leading to a malformed file

Switch to using a curl command to download sample code, instead of
dealing with nested quotes and stuff.

Addresses #128.
This commit is contained in:
Soam Vasani
2017-02-17 15:34:02 -08:00
parent 8cf382c2b3
commit 3b75a86773
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Finally, you're ready to use Fission!
``` ```
$ fission env create --name nodejs --image fission/node-env $ 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 $ fission function create --name hello --env nodejs --code hello.js
+2 -2
View File
@@ -63,7 +63,7 @@ Usage
$ fission env create --name nodejs --image fission/node-env $ fission env create --name nodejs --image fission/node-env
# A javascript one-liner that prints "hello world" # 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 # Upload your function code to fission
$ fission function create --name hello --env nodejs --code hello.js $ 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 $ 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 $ fission function create --name hello --env nodejs --code hello.js
+1 -1
View File
@@ -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 $ 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 $ fission function create --name hello --env nodejs --code hello.js