Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7d6c526

Browse files
authored
Add app_name parameter to code-server (#176)
* Add `app_name` parameter to code-server * Add quotes and use `display_name`
1 parent a3dc364 commit 7d6c526

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code-server/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ resource "coder_script" "code-server" {
9090
script = templatefile("${path.module}/run.sh", {
9191
VERSION : var.install_version,
9292
EXTENSIONS : join(",", var.extensions),
93+
APP_NAME : var.display_name,
9394
PORT : var.port,
9495
LOG_PATH : var.log_path,
9596
INSTALL_PREFIX : var.install_prefix,

code-server/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ fi
4747

4848
echo "👷 Running code-server in the background..."
4949
echo "Check logs at ${LOG_PATH}!"
50-
$CODE_SERVER --auth none --port ${PORT} > ${LOG_PATH} 2>&1 &
50+
$CODE_SERVER --auth none --port ${PORT} --app-name "${APP_NAME}" > ${LOG_PATH} 2>&1 &

0 commit comments

Comments
 (0)