Closed
Description
I have a complex startup script:
resource "coder_agent" "dev" {
arch = "amd64"
os = "linux"
startup_script = <<EOF
#!/bin/sh
# install and start code-server
curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
sudo service docker start
if [ -f ~/personalize ]; then ~/personalize 2>&1 | tee ~/.personalize.log; fi
EOF
}
And it's not clear to me where I could see its log output. It would also be nice to not have to redirect command execution to logs manually.
The natural place for me to find this is the build log on the dashboard, but I also expect some file in my workspace to contain the log.
While we're at it, we should include the agent logs (/var/log/coder-agent.log
) in the dashboard build log.