chore: add the --ephemeral server flag (#16126)

Another PR to address https://github.com/coder/coder/issues/15109.

Changes:
- Introduces the `--ephemeral` flag, which changes the Coder config
directory to a temporary location. The config directory is where the
built-in PostgreSQL stores its data, so using a new one results in a
deployment with a fresh state.

The `--ephemeral` flag is set to replace the `--in-memory` flag once the
in-memory database is removed.
This commit is contained in:
Hugo Dutka
2025-01-20 14:31:16 +01:00
committed by GitHub
parent d8fbbcbd36
commit 23cf61aff6
10 changed files with 95 additions and 5 deletions

3
coderd/apidoc/docs.go generated
View File

@ -10875,6 +10875,9 @@ const docTemplate = `{
"enable_terraform_debug_mode": {
"type": "boolean"
},
"ephemeral_deployment": {
"type": "boolean"
},
"experiments": {
"type": "array",
"items": {