Configure kosmos-github

closes #35
This commit is contained in:
2019-04-19 17:35:29 +01:00
parent 45c764c83e
commit 1d98bf14fe
11 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Start nodejs app
Requires=nginx.service
After=nginx.service
[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