Add `app_name` parameter to code-server

pull/176/head
FlorianGareis 1 year ago
parent b90f6f9de8
commit e406347bce
No known key found for this signature in database

@ -26,6 +26,12 @@ variable "port" {
default = 13337 default = 13337
} }
variable "app_name" {
type = string
description = "The app name for the code-server application."
default = "code-server"
}
variable "display_name" { variable "display_name" {
type = string type = string
description = "The display name for the code-server application." description = "The display name for the code-server application."
@ -84,6 +90,7 @@ resource "coder_script" "code-server" {
script = templatefile("${path.module}/run.sh", { script = templatefile("${path.module}/run.sh", {
VERSION : var.install_version, VERSION : var.install_version,
EXTENSIONS : join(",", var.extensions), EXTENSIONS : join(",", var.extensions),
APP_NAME : var.app_name,
PORT : var.port, PORT : var.port,
LOG_PATH : var.log_path, LOG_PATH : var.log_path,
INSTALL_PREFIX : var.install_prefix, INSTALL_PREFIX : var.install_prefix,

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

Loading…
Cancel
Save