Adding Dockerfile and build script
This commit is contained in:
@ -42,7 +42,7 @@ const cache = new Map<string, Handlebars.TemplateDelegate>();
|
||||
|
||||
export default function getTemplate(name: string) {
|
||||
let tl: Handlebars.TemplateDelegate;
|
||||
if (!config.general.dev)
|
||||
if (!config.dev)
|
||||
tl = cache.get(name);
|
||||
|
||||
if (!tl) {
|
||||
|
@ -2,9 +2,9 @@ import { LoggingBase } from "@hibas123/nodelogging";
|
||||
import { Context } from "koa";
|
||||
import config from "../../config";
|
||||
|
||||
const route_logging = new LoggingBase({ name: "access", files: { errorfile: null }, console: config.general.dev })
|
||||
const route_logging = new LoggingBase({ name: "access", files: { errorfile: null }, console: config.dev })
|
||||
const RequestLog = async (ctx: Context, next) => {
|
||||
if (!config.general.access_log) return next();
|
||||
if (!config.access_log) return next();
|
||||
let start = process.hrtime()
|
||||
let to = false
|
||||
let print = () => {
|
||||
|
Reference in New Issue
Block a user