Skip to content

Commit 3fc3b9f

Browse files
authored
docs: add psql URL for built-in db and repair workspace CLI (#4864)
1 parent f76e7b1 commit 3fc3b9f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/admin/configure.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ downloaded from Maven (https://repo1.maven.org/maven2) and store all data in the
3737

3838
> Postgres 13 is the minimum supported version.
3939
40+
If you are using the built-in PostgreSQL deployment and need to use `psql` (aka
41+
the PostgreSQL interactive terminal), output the connection URL with the following command:
42+
43+
```console
44+
$ coder server postgres-builtin-url
45+
$ psql "postgres://coder@localhost:49627/coder?sslmode=disable&password=feU...yI1"
46+
```
47+
4048
## System packages
4149

4250
If you've installed Coder via a [system package](../install/packages.md) Coder, you can

docs/workspaces.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ The workspace will be stopped and started:
7070
coder update <workspace-name>
7171
```
7272

73+
## Repairing workspaces
74+
75+
Use the following command to re-enter template input
76+
variables in an existing workspace. This command is useful when a workspace fails
77+
to build because its state is out of sync with the template.
78+
79+
```console
80+
coder update <your workspace name> --always-prompt
81+
```
82+
7383
## Logging
7484

7585
Coder stores macOS and Linux logs at the following locations:

0 commit comments

Comments
 (0)