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.
		
			
				
	
	
		
			18 lines
		
	
	
		
			373 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			373 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [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
 |