Skip to content

Commit f6d65ea

Browse files
committed
tweaks
1 parent aa7f52f commit f6d65ea

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

3-recommended/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ WORKDIR /app
44

55
ADD package.json .
66
ADD yarn.lock .
7-
RUN yarn install
7+
RUN yarn install
88

9-
ADD index.js .
9+
ADD . .
1010

1111
ENTRYPOINT [ "yarn", "run", "nodemon", "/app/index.js" ]

3-recommended/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const express = require('express');
55
const app = express();
66
const mustacheExpress = require('mustache-express');
77

8-
app.engine('html', mustacheExpress());
8+
app.engine('mustache', mustacheExpress());
99

10-
app.set('view engine', 'html');
10+
app.set('view engine', 'mustache');
1111
app.set('views', __dirname + '/views');
1212
app.use(express.static('public'))
1313

@@ -16,7 +16,7 @@ app.get('/', function(req, res) {
1616
time: 'a million years'
1717
};
1818

19-
res.render('index', data);
19+
res.render('index.mustache', data);
2020
});
2121

2222
app.listen(8000, () => {

3-recommended/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "spoonerisms",
2+
"name": "tilt-example-nodejs",
33
"version": "1.0.0",
44
"main": "index.js",
55
"license": "MIT",
File renamed without changes.

0 commit comments

Comments
 (0)