fix configDir typo (should be directory, not file)

This commit is contained in:
AJ ONeal 2020-08-03 08:42:01 +00:00
parent 1a60d53c32
commit 89e2fec39f
1 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,8 @@ Certificates are renewed every 45 days by default, and renewal checks will happe
var pkg = require('./package.json'); var pkg = require('./package.json');
var Greenlock = require('greenlock'); var Greenlock = require('greenlock');
var greenlock = Greenlock.create({ var greenlock = Greenlock.create({
configDir: './greenlock.d/config.json', packageRoot: __dirname,
configDir: "./greenlock.d/",
packageAgent: pkg.name + '/' + pkg.version, packageAgent: pkg.name + '/' + pkg.version,
maintainerEmail: pkg.author, maintainerEmail: pkg.author,
staging: true, staging: true,
@ -177,7 +178,7 @@ Creates an instance of greenlock with _environment_-level values.
var pkg = require('./package.json'); var pkg = require('./package.json');
var gl = Greenlock.create({ var gl = Greenlock.create({
configDir: './greenlock.d/config.json', configDir: './greenlock.d/',
// Staging for testing environments // Staging for testing environments
staging: true, staging: true,