From b51a506e908ca0ab6c1409eab8b6af9d8c288ff1 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 31 Dec 2022 16:37:37 +0000 Subject: Use EnvironmentFile to keep server-only values on the server, but still keep the systemd unit file in git and deploy it usually --- comments/comments.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comments') diff --git a/comments/comments.service b/comments/comments.service index b511915..7d8f0e5 100644 --- a/comments/comments.service +++ b/comments/comments.service @@ -6,7 +6,7 @@ After=postgres.service User=comments ExecStart=/usr/local/bin/comments Restart=on-failure -Environment="DATABASE_URL=postgres:///comments" +EnvironmentFile=/etc/sysconfig/comments [Install] WantedBy=multi-user.target -- cgit v1.2.3-ZIG