Skip to content

Commit 256beeb

Browse files
tomasklapkaRubenVerborgh
authored andcommitted
fixed path for default templates and views (#577)
1 parent f168cbb commit 256beeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/server-config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function initConfigDir (argv) {
8585
* @return {string} Path to the views dir
8686
*/
8787
function initDefaultViews (configPath) {
88-
let defaultViewsPath = path.resolve('./default-views')
88+
let defaultViewsPath = path.join(__dirname, '../default-views')
8989
let viewsPath = path.join(configPath, 'views')
9090

9191
ensureDirCopyExists(defaultViewsPath, viewsPath)
@@ -106,17 +106,17 @@ function initDefaultViews (configPath) {
106106
*/
107107
function initTemplateDirs (configPath) {
108108
let accountTemplatePath = ensureDirCopyExists(
109-
'./default-templates/new-account',
109+
path.join(__dirname, '../default-templates/new-account'),
110110
path.join(configPath, 'templates', 'new-account')
111111
)
112112

113113
let emailTemplatesPath = ensureDirCopyExists(
114-
'./default-templates/emails',
114+
path.join(__dirname, '../default-templates/emails'),
115115
path.join(configPath, 'templates', 'emails')
116116
)
117117

118118
let serverTemplatePath = ensureDirCopyExists(
119-
'./default-templates/server',
119+
path.join(__dirname, '../default-templates/server'),
120120
path.join(configPath, 'templates', 'server')
121121
)
122122

0 commit comments

Comments
 (0)