diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-31 16:37:37 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-31 16:37:37 +0000 |
commit | b51a506e908ca0ab6c1409eab8b6af9d8c288ff1 (patch) | |
tree | 7b556accf1a971dc79da29214959c99db6bc9ead /comments | |
parent | 511576c016f39fc48d83266fe20c418c9ee10ec2 (diff) | |
download | mfashby.net-b51a506e908ca0ab6c1409eab8b6af9d8c288ff1.tar.gz mfashby.net-b51a506e908ca0ab6c1409eab8b6af9d8c288ff1.tar.bz2 mfashby.net-b51a506e908ca0ab6c1409eab8b6af9d8c288ff1.tar.xz mfashby.net-b51a506e908ca0ab6c1409eab8b6af9d8c288ff1.zip |
Use EnvironmentFile to keep server-only values on the server,
but still keep the systemd unit file in git and deploy it usually
Diffstat (limited to 'comments')
-rw-r--r-- | comments/comments.service | 2 |
1 files changed, 1 insertions, 1 deletions
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 |