diff --git a/packaging/ansible/ubuntu/hapi.yaml b/packaging/ansible/ubuntu/hapi.yaml index a4077de9..a6aef830 100644 --- a/packaging/ansible/ubuntu/hapi.yaml +++ b/packaging/ansible/ubuntu/hapi.yaml @@ -7,7 +7,7 @@ tasks: - name: Add the OS specific variables - include_vars: + include_vars: file: index.yaml - name: hapi folder exists 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