From fabbe398a2e50aa9aa459e27a1327053992187f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Tue, 23 Apr 2019 11:28:23 +0200 Subject: [PATCH] Remove the nginx recipe inclusion and the dependency on nginx in the service The nginx vhost should be set up after the app is deployed. The node app doesn't need nginx to run --- site-cookbooks/kredits-github/recipes/default.rb | 1 - .../kredits-github/templates/default/nodejs.systemd.service.erb | 2 -- 2 files changed, 3 deletions(-) diff --git a/site-cookbooks/kredits-github/recipes/default.rb b/site-cookbooks/kredits-github/recipes/default.rb index 954c990..d452416 100644 --- a/site-cookbooks/kredits-github/recipes/default.rb +++ b/site-cookbooks/kredits-github/recipes/default.rb @@ -25,7 +25,6 @@ # THE SOFTWARE. include_recipe 'kosmos-nodejs' -include_recipe 'kredits-github::nginx' app_name = "kredits-github" deploy_user = "deploy" diff --git a/site-cookbooks/kredits-github/templates/default/nodejs.systemd.service.erb b/site-cookbooks/kredits-github/templates/default/nodejs.systemd.service.erb index a20fb92..68f7a05 100644 --- a/site-cookbooks/kredits-github/templates/default/nodejs.systemd.service.erb +++ b/site-cookbooks/kredits-github/templates/default/nodejs.systemd.service.erb @@ -1,7 +1,5 @@ [Unit] Description=Start nodejs app -Requires=nginx.service -After=nginx.service [Service] ExecStart=<%= @entry %>