From 49c7b98e13e3ce6ee07f480c146207506e7b4eed Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Sun, 17 Feb 2019 14:25:15 -0500 Subject: [PATCH] Start node directly instead of using npm This is as per this pull request - https://github.com/tootsuite/mastodon/pull/10032 --- roles/mastodon-systemd/files/mastodon-streaming.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mastodon-systemd/files/mastodon-streaming.service b/roles/mastodon-systemd/files/mastodon-streaming.service index ac927fb..9b18d4e 100644 --- a/roles/mastodon-systemd/files/mastodon-streaming.service +++ b/roles/mastodon-systemd/files/mastodon-streaming.service @@ -9,7 +9,7 @@ WorkingDirectory=/home/mastodon/live Environment="NODE_ENV=production" Environment="PORT=4000" Environment="BIND=127.0.0.1" -ExecStart=/usr/bin/npm run start +ExecStart=/usr/bin/node ./streaming TimeoutSec=15 Restart=always