Trying a fix for chat names crashing the server

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-17 15:52:51 +02:00
parent a7f147eb1f
commit 0be7813428
2 changed files with 22 additions and 14 deletions

View File

@@ -2,13 +2,12 @@ VERSION = 3;
var server;
var add = "";
const path = require('path');
const publicPath = path.join(__dirname, 'public');
var path = require('path');
var publicPath = path.join(__dirname, 'public');
pathThumbnails = __dirname;
var express = require('express');
var app = express();
var exphbs = require('express-handlebars');
console.log(path.join(__dirname, 'config'));
var cert_config = require(path.join(path.join(__dirname, 'config'), 'cert_config.js'));
var hbs = exphbs.create({
defaultLayout: publicPath + '/layouts/main',