From 6dbd2a370f879e61467faaddc06d19282a0ddf26 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Wed, 23 Nov 2016 22:35:10 +0100 Subject: [PATCH] github-bot: redirect stdout to file Allows us to simplify github-bot logging by not having to write into logs into a file. Also fixes an issue we have currently, where all current logs are deleted whenever the bot is redeployed. --- setup/github-bot/resources/github-bot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/github-bot/resources/github-bot.service b/setup/github-bot/resources/github-bot.service index d42dd84b8..731a31706 100644 --- a/setup/github-bot/resources/github-bot.service +++ b/setup/github-bot/resources/github-bot.service @@ -5,7 +5,7 @@ Description=github-bot WantedBy=multi-user.target [Service] -ExecStart=/usr/bin/node server.js +ExecStart=/usr/bin/node server.js &> /home/{{server_user}}/logs/github-bot.log EnvironmentFile=/home/{{server_user}}/environment/github-bot WorkingDirectory=/home/{{server_user}}/github-bot Restart=always