docs: Numerous various updates for v2.1

This commit is contained in:
Matthew Holt 2020-06-08 14:56:20 -06:00
parent 148176582d
commit db18a5d4c8
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
9 changed files with 79 additions and 12 deletions

View file

@ -136,7 +136,8 @@ Prints the environment as seen by caddy, then exits. Can be useful when debuggin
[--listen <addr>]
[--domain <example.com>]
[--browse]
[--templates]</code></pre>
[--templates]
[--access-log]</code></pre>
Spins up a simple but production-ready static file server.
@ -150,6 +151,8 @@ Spins up a simple but production-ready static file server.
`--templates` will enable template rendering.
`--access-log` enables the request/access log.
This command disables the admin API, making it easier to run multiple instances on a local development machine.
@ -252,6 +255,7 @@ This command disables the admin API so it is easier to run multiple instances on
[--adapter &lt;name&gt;]
[--pidfile &lt;file&gt;]
[--environ]
[--envfile &lt;file&gt;]
[--resume]
[--watch]</code></pre>
@ -265,6 +269,8 @@ Runs Caddy and blocks indefinitely; i.e. "daemon" mode.
`--environ` prints out the environment before starting. This is the same as the `caddy environ` command, but does not exit after printing.
`--envfile` loads environment variables from the specified file.
`--resume` uses the last loaded configuration, overriding the `--config` flag (if present) if a previous config was saved. Using this flag guarantees config durability through machine reboots or process restarts. It is most useful in [API](/docs/api)-heavy deployments.
`--watch` will watch the config file and automatically reload it after it changes. ⚠️ This feature is intended for use only in local development environments!