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
$ 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