set base path for files and views to project dir
This commit is contained in:
Родитель
e577e853cb
Коммит
19f5cddd80
|
@ -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'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче