From 783387f43da788762f8d60ed03068b21f9ebc147 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 3 Nov 2019 02:55:53 -0700 Subject: [PATCH] use correck rc path --- bin/tmpl/server.tmpl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tmpl/server.tmpl.js b/bin/tmpl/server.tmpl.js index 5c0e24c..62c8e31 100644 --- a/bin/tmpl/server.tmpl.js +++ b/bin/tmpl/server.tmpl.js @@ -30,7 +30,8 @@ function getGreenlockRc() { // The RC file is also used by the (optional) CLI and (optional) Web GUI. // You are free to forego CLI and GUI support. var fs = require('fs'); - var rcPath = '.greenlockrc'; + var path = require('path'); + var rcPath = path.join(__dirname, '.greenlockrc'); var rc = fs.readFileSync(rcPath, 'utf8'); return JSON.parse(rc); }