Deploy schlupp from new private repo

This commit is contained in:
Greg Karékinian
2016-08-08 13:24:23 +02:00
parent 90835233de
commit 691a0e5533
9 changed files with 195 additions and 51 deletions

View File

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