Created
April 30, 2018 12:46
-
-
Save karl-gustav/c6eab35d963fbf4e8cc3405ca34b9b27 to your computer and use it in GitHub Desktop.
deploy script for golang --> raspberry pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
tar czf - brain.new brain.service | ssh smart 'tar xzf - -C /srv/brain/ && ( mv /srv/brain/brain{,.old} ; mv /srv/brain/brain{.new,} ) && systemctl daemon-reload && service brain restart' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment