Skip to content

Commit 9755f5a

Browse files
committed
docs: clean up English
Some minor mistakes were introduced in #3319
1 parent 70bf66e commit 9755f5a

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

docs/templates.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ inherited by all child processes of the agent, including SSH sessions.
9898
#### startup_script
9999

100100
Use the Coder agent's `startup_script` to run additional commands like
101-
installing IDEs and clone dotfile and project repos. In this example, the
102-
project and dotfile repos are specified as Terraform input variables elsewhere
103-
in the `main.tf` Note the `&` after the `code-server` start to execute
104-
`code-server` process in the background so the `startup_script` can continue
105-
with the repo cloning steps.
101+
installing IDEs, [cloning dotfile](./dotfiles.md#templates), and cloning project repos.
106102

107103
```hcl
108104
resource "coder_agent" "coder" {
@@ -113,27 +109,27 @@ resource "coder_agent" "coder" {
113109
#!/bin/bash
114110
115111
# install code-server
116-
curl -fsSL https://code-server.dev/install.sh | sh
112+
curl -fsSL https://code-server.dev/install.sh | sh
113+
114+
# The & prevents the startup_script from blocking so the
115+
# next commands can run.
117116
code-server --auth none --port &
118117
118+
# var.repo and var.dotfiles_uri is specified
119+
# elsewhere in the Terraform code as input
120+
# variables.
121+
119122
# clone repo
120123
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
121124
git clone --progress git@github.com:${var.repo}
122125
123126
# use coder CLI to clone and install dotfiles
124127
coder dotfiles -y ${var.dotfiles_uri}
125128
126-
EOT
129+
EOT
127130
}
128131
```
129132

130-
#### Logging
131-
132-
The output of the `startup_script` are located in
133-
`/tmp/coder-startup-script.log` within the workspace.
134-
135-
The Coder agent log is located in `/tmp/coder-agent.log` within the workspace.
136-
137133
### Parameters
138134

139135
Templates often contain _parameters_. These are defined by `variable` blocks in

docs/workspaces.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ The workspace will be stopped and started:
4949
coder update <workspace-name>
5050
```
5151

52+
## Logging
53+
54+
Coder stores MacOS and Linux logs at the following locations:
55+
56+
| Service | Location |
57+
| ---------------- | ------------------------------- |
58+
| `startup_script` | `/tmp/coder-startup-script.log` |
59+
| Agent | `/tmp/coder-agent.log` |
60+
5261
---
5362

5463
## Up next

0 commit comments

Comments
 (0)