зеркало из https://github.com/mozilla/gombot.git
use relative for views
This commit is contained in:
Родитель
9e2780ef07
Коммит
99881f8faa
|
@ -16,7 +16,7 @@ var server = http.createServer(app);
|
||||||
var host = process.env.GOMBOT_HOST || '127.0.0.1';
|
var host = process.env.GOMBOT_HOST || '127.0.0.1';
|
||||||
var static_root = path.join(__dirname, "..", "public");
|
var static_root = path.join(__dirname, "..", "public");
|
||||||
|
|
||||||
var env = new nunjucks.Environment(new nunjucks.FileSystemLoader('views'));
|
var env = new nunjucks.Environment(new nunjucks.FileSystemLoader(path.join(__dirname, '..', 'views')));
|
||||||
env.express(app);
|
env.express(app);
|
||||||
|
|
||||||
console.log("static starting up");
|
console.log("static starting up");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче