From a1552f39339c3577330c71a343d9bae67f133731 Mon Sep 17 00:00:00 2001 From: Dennis Banga Date: Fri, 22 Dec 2023 01:20:19 +0300 Subject: [PATCH] Extract stdout from node_path- gofr.service.j2 gets the stdout of the `which node` --- packaging/ansible/ubuntu/templates/gofr.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/ansible/ubuntu/templates/gofr.service.j2 b/packaging/ansible/ubuntu/templates/gofr.service.j2 index fb8fa220..7756075c 100644 --- a/packaging/ansible/ubuntu/templates/gofr.service.j2 +++ b/packaging/ansible/ubuntu/templates/gofr.service.j2 @@ -6,9 +6,9 @@ After=network.target [Service] Type=simple WorkingDirectory=/var/lib/gofr/gofr-backend -ExecStart={{node_path}} /var/lib/gofr/gofr-backend/{{site}}/bin/www +ExecStart={{node_path.stdout}} /var/lib/gofr/gofr-backend/{{site}}/bin/www Restart=always Environment=NODE_ENV=production [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target