set base path for files and views to project dir

This commit is contained in:
Danny Coates 2013-06-14 16:47:31 -07:00
Родитель e577e853cb
Коммит 19f5cddd80
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -7,7 +7,7 @@
"CONFIG_FILES": "$HOME/code/config/aws.json,$HOME/config.json", "CONFIG_FILES": "$HOME/code/config/aws.json,$HOME/config.json",
"HEKAD_CONFIG": "$HOME/code/heka/hekad.toml" "HEKAD_CONFIG": "$HOME/code/heka/hekad.toml"
}, },
"remote_hooks": { "hooks": {
"postcreate": "scripts/aws/post_create.sh", "postcreate": "scripts/aws/post_create.sh",
"postdeploy": "scripts/aws/post_deploy.sh" "postdeploy": "scripts/aws/post_deploy.sh"
}, },

Просмотреть файл

@ -11,7 +11,11 @@ const stats = require('./lib/stats');
// server settings // server settings
var settings = { var settings = {
files: {
relativeTo: __dirname
},
views: { views: {
basePath: __dirname,
path: 'templates', path: 'templates',
engines: { engines: {
html: 'handlebars' html: 'handlebars'