Здравствуйте. Я ни разу не деплоил. Подскажите, я правильно деплою?
set -e
URI="192.168.88.243"
USSH="ssh user@$URI"
RSSH="ssh root@$URI"
ROOT="/home/user"
$RSSH "systemctl stop hiawatha"
$USSH "mkdir -p ~/coolmaster"
rsync -a --delete --progress ./ "user@$URI:~/coolmaster"
rsync -a --delete --progress ../lualibs "user@$URI:~/"
rsync -a --delete --progress ../jslibs "user@$URI:~/"
$USSH "cd ~/coolmaster/build; lua gen_configs.lua production"
$USSH "cd ~/coolmaster/cm; ./build"
$RSSH "ln -fs $ROOT/coolmaster/hiawatha.conf /etc/hiawatha/hiawatha.conf"
$USSH "ln -fs ~/jslibs ~/coolmaster/web/jslibs"
$RSSH "systemctl daemon-reload"
$RSSH "systemctl start hiawatha"