Switch from IPFS cluster to kredits-ipfs-pinner

This removes the cluster configuration and adds deployment of Kredits
IPFS Pinner. It also switches hubot-kredits to use the normal API
endpoint again (instead of the cluster port).

Furthermore, it upgrades go-ipfs to the latest version.
This commit is contained in:
2019-07-03 15:34:42 +02:00
parent a22d10e083
commit f4990a8066
9 changed files with 124 additions and 32 deletions

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Start nodejs app
After=ipfs.service
[Service]
ExecStartPre=/bin/sleep 5
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