From: Nolan Lawson Date: Wed, 13 Feb 2019 17:52:36 +0000 (-0800) Subject: perf: run node directly when streaming (#10032) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=658b4621a622364d8daf699a7e46c65f3f63486b;p=mastodon.git perf: run node directly when streaming (#10032) --- diff --git a/dist/mastodon-streaming.service b/dist/mastodon-streaming.service index 5d7c129df..c324fccf4 100644 --- a/dist/mastodon-streaming.service +++ b/dist/mastodon-streaming.service @@ -9,7 +9,7 @@ WorkingDirectory=/home/mastodon/live Environment="NODE_ENV=production" Environment="PORT=4000" Environment="STREAMING_CLUSTER_NUM=1" -ExecStart=/usr/bin/npm run start +ExecStart=/usr/bin/node ./streaming TimeoutSec=15 Restart=always