Skip to content

Commit

Permalink
Update template name and message
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Feb 15, 2021
1 parent 854255e commit 2501999
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions template/node12/template.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: node12
fprocess: node index.js
welcome_message: |
You have created a new function which uses Node.js 12 (TLS) and the OpenFaaS
of-watchdog which gives greater control over HTTP responses.
You have created a new function which uses Node.js 12.
npm i --save can be used to add third-party packages like request or cheerio
npm documentation: https://docs.npmjs.com/
Expand Down
2 changes: 1 addition & 1 deletion template/node14/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ app.options('/*', middleware);
const port = process.env.http_port || 3000;

app.listen(port, () => {
console.log(`node12 listening on port: ${port}`)
console.log(`node14 listening on port: ${port}`)
});


4 changes: 2 additions & 2 deletions template/node14/template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node12
language: node14
fprocess: node index.js
welcome_message: |
You have created a new function which uses Node.js 12 (TLS) and the OpenFaaS
You have created a new function which uses Node.js 14 (LTS) and the OpenFaaS
of-watchdog which gives greater control over HTTP responses.
npm i --save can be used to add third-party packages like request or cheerio
Expand Down

0 comments on commit 2501999

Please sign in to comment.