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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user