Skip to content

Commit

Permalink
Merge pull request #156 from nzzdev/release-5.0.1
Browse files Browse the repository at this point in the history
Release 5.0.1
  • Loading branch information
migingreen authored Sep 29, 2021
2 parents 065e632 + cf36b6f commit 3e8471d
Show file tree
Hide file tree
Showing 40 changed files with 7,634 additions and 1,984 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
- docker
language: node_js
node_js:
- "12"
- "14"
cache:
directories:
- node_modules
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use following version of node alpine as the base image
FROM node:12-alpine
FROM node:14-alpine

# Set work directory for run/cmd
WORKDIR /app
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Hapi = require("@hapi/hapi");
const Joi = require("@hapi/joi");

const server = Hapi.server({
port: process.env.PORT || 3000,
Expand All @@ -8,12 +7,12 @@ const server = Hapi.server({
},
});

server.validator(Joi);

const routes = require("./routes/routes.js");

async function init() {
await server.register(require("@hapi/inert"));
server.validator(require("joi"));

server.route(routes);

Expand Down
Loading

0 comments on commit 3e8471d

Please sign in to comment.