This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-manager/deploy.sh
Sybren A. Stüvel 64c8ede727 Changed project file layout to be standard golang project layout
This means a bit more adjustment on the part of developers that aren't
familiar with how Go does things, but it makes it more consistent and
easier to work with when on multiple Go projects.
2017-10-03 12:01:06 +02:00

18 lines
677 B
Bash
Executable File

#!/bin/bash -e
# Deploys onto biflamanager
DEPLOYHOST=biflamanager
DEPLOYPATH=/home/flamanager/ # end in slash!
SSH="ssh -o ClearAllForwardings=yes"
echo "======== Building a statically-linked Flamenco Manager"
bash docker/build-via-docker.sh linux
echo "======== Deploying onto $DEPLOYHOST"
$SSH $DEPLOYHOST -t "sudo systemctl stop flamenco-manager.service"
rsync -e "$SSH" -va docker/flamenco-manager-linux $DEPLOYHOST:$DEPLOYPATH/flamenco-manager --delete-after
rsync -e "$SSH" -va templates static $DEPLOYHOST:$DEPLOYPATH --delete-after --exclude static/latest-image.jpg
$SSH $DEPLOYHOST -t "sudo systemctl start flamenco-manager.service"
echo "======== Deploy done."