summaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2025-12-28 09:59:56 -0800
committerbndw <ben@bdw.to>2025-12-28 09:59:56 -0800
commitae384f0860c7ef98cc3de1763886566dc6ca903c (patch)
tree30d539af1a9e7b459f6822743b2bc08d1425e120 /internal
parent13c2f9cffa624fdf498f3b61fab9d809b92e026e (diff)
files
Diffstat (limited to 'internal')
-rw-r--r--internal/state/state.go4
-rw-r--r--internal/templates/templates.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/state/state.go b/internal/state/state.go
index c7c7dd4..eb1dee8 100644
--- a/internal/state/state.go
+++ b/internal/state/state.go
@@ -20,10 +20,12 @@ type Host struct {
20 20
21// App represents a deployed application or static site 21// App represents a deployed application or static site
22type App struct { 22type App struct {
23 Type string `json:"type"` // "app" or "static" 23 Type string `json:"type"` // "app" or "static"
24 Domain string `json:"domain"` 24 Domain string `json:"domain"`
25 Port int `json:"port,omitempty"` // only for type="app" 25 Port int `json:"port,omitempty"` // only for type="app"
26 Env map[string]string `json:"env,omitempty"` // only for type="app" 26 Env map[string]string `json:"env,omitempty"` // only for type="app"
27 Args string `json:"args,omitempty"` // only for type="app"
28 Files []string `json:"files,omitempty"` // only for type="app"
27} 29}
28 30
29const ( 31const (
diff --git a/internal/templates/templates.go b/internal/templates/templates.go
index d90163d..feb6c10 100644
--- a/internal/templates/templates.go
+++ b/internal/templates/templates.go
@@ -14,7 +14,7 @@ Type=simple
14User={{.User}} 14User={{.User}}
15WorkingDirectory={{.WorkDir}} 15WorkingDirectory={{.WorkDir}}
16EnvironmentFile={{.EnvFile}} 16EnvironmentFile={{.EnvFile}}
17ExecStart={{.BinaryPath}} --port={{.Port}} 17ExecStart={{.BinaryPath}} {{.Args}}
18Restart=always 18Restart=always
19RestartSec=5s 19RestartSec=5s
20NoNewPrivileges=true 20NoNewPrivileges=true