|
|
@ -7,7 +7,7 @@ Saves global and per-site config to a local File Sytem (current), with optional |
|
|
|
## Install |
|
|
|
|
|
|
|
```bash |
|
|
|
npm install --save greenlock@3 |
|
|
|
npm install --save greenlock@4 |
|
|
|
npm install --save greenlock-manager@3 |
|
|
|
``` |
|
|
|
|
|
|
@ -16,13 +16,13 @@ npm install --save greenlock-manager@3 |
|
|
|
To enable encrypted cloud backup, when it becomes available: |
|
|
|
|
|
|
|
```js |
|
|
|
npx greenlock init --manager cloud --manager-config-file './greenlock.json' |
|
|
|
npx greenlock init --manager cloud --config-dir './greenlock.d' |
|
|
|
``` |
|
|
|
|
|
|
|
For local file system only: |
|
|
|
|
|
|
|
```js |
|
|
|
npx greenlock init --manager fs --manager-config-file './greenlock.json' |
|
|
|
npx greenlock init --manager fs --config-dir './greenlock.d' |
|
|
|
``` |
|
|
|
|
|
|
|
Or, place this file in the root of your project: |
|
|
@ -31,8 +31,8 @@ Or, place this file in the root of your project: |
|
|
|
|
|
|
|
```json |
|
|
|
{ |
|
|
|
"manager": "@greenlock/manager", |
|
|
|
"configFile": "./greenlock.json" |
|
|
|
"manager": { "module": "@greenlock/manager" }, |
|
|
|
"configDir": "./greenlock.d" |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
@ -49,7 +49,7 @@ Instead, use the CLI (current) or Web API (coming soon). |
|
|
|
## Initialize the Manager |
|
|
|
|
|
|
|
```bash |
|
|
|
npx greenlock init --manager cloud --manager-config-file './greenlock.json' |
|
|
|
npx greenlock init --manager cloud --config-dir './greenlock.d' |
|
|
|
``` |
|
|
|
|
|
|
|
Note: You **should not** initialize greenlock directly as |
|
|
@ -61,7 +61,7 @@ Instead use the file generated by the CLI `init` (shown above). |
|
|
|
Greenlock.create({ |
|
|
|
manager: "@greenlock/manager", |
|
|
|
cloud: true, |
|
|
|
configFile: "./greenlock.json", |
|
|
|
configDir: "./greenlock.d", |
|
|
|
packageRoot: __dirname |
|
|
|
}); |
|
|
|
``` |
|
|
|