Replace application cookbook with git resource

This commit is contained in:
Greg Karékinian
2023-06-28 18:54:38 +02:00
parent 3a5a038f7e
commit 54098a450c
3 changed files with 49 additions and 88 deletions

View File

@@ -1,15 +0,0 @@
[Unit]
Description=Start nodejs app
[Service]
ExecStart=<%= @entry %>
WorkingDirectory=<%= @app_dir %>
User=<%= @user %>
Group=<%= @group %>
<% unless @environment.empty? -%>
Environment=<% @environment.each do |key, value| -%>'<%= key %>=<%= value %>' <% end %>
<% end -%>
Restart=always
[Install]
WantedBy=multi-user.target