Page MenuHome

deploy.sh
No OneTemporary

deploy.sh

#!/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."

File Metadata

Mime Type
text/x-shellscript
Expires
Tue, Sep 22, 7:49 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e7/fd/00e39cc6bfa7aaeb26d7acdd6471

Event Timeline