mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Numerous various updates for v2.1
This commit is contained in:
parent
148176582d
commit
db18a5d4c8
9 changed files with 79 additions and 12 deletions
|
@ -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 <name>]
|
||||
[--pidfile <file>]
|
||||
[--environ]
|
||||
[--envfile <file>]
|
||||
[--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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue