From 19f5cddd80566baff3265459664827f0d6e1af7a Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 14 Jun 2013 16:47:31 -0700 Subject: [PATCH] set base path for files and views to project dir --- .awsbox.json | 2 +- server.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.awsbox.json b/.awsbox.json index 576c9017..f7cf1cb5 100644 --- a/.awsbox.json +++ b/.awsbox.json @@ -7,7 +7,7 @@ "CONFIG_FILES": "$HOME/code/config/aws.json,$HOME/config.json", "HEKAD_CONFIG": "$HOME/code/heka/hekad.toml" }, - "remote_hooks": { + "hooks": { "postcreate": "scripts/aws/post_create.sh", "postdeploy": "scripts/aws/post_deploy.sh" }, diff --git a/server.js b/server.js index e21f6214..4809316e 100644 --- a/server.js +++ b/server.js @@ -11,7 +11,11 @@ const stats = require('./lib/stats'); // server settings var settings = { + files: { + relativeTo: __dirname + }, views: { + basePath: __dirname, path: 'templates', engines: { html: 'handlebars'