From ad952ce87e78a99763465707950c295f9e1e4d83 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 4 Jun 2024 17:16:51 +0200 Subject: [PATCH] fix: move env var from `ExecStart` to `Environment` --- portfolio_server/systemd/portfolio.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portfolio_server/systemd/portfolio.service b/portfolio_server/systemd/portfolio.service index 0671fbc..e6de599 100644 --- a/portfolio_server/systemd/portfolio.service +++ b/portfolio_server/systemd/portfolio.service @@ -8,7 +8,8 @@ After=network-online.target Type=simple User=deno WorkingDirectory=/srv/portfolio -ExecStart=PORT=6363 /usr/local/bin/deno task serve +Environment=PORT=6363 +ExecStart=/usr/local/bin/deno task serve Restart=on-failure [Install]