#!/bin/sh

mkdir -p $HOME/.ssh
ssh-keyscan -t rsa $DEPLOY_HOST >> $HOME/.ssh/known_hosts

chown -R $(whoami) .

sshpass -p "$DEPLOY_PASSWORD" \
  rsync -avzrO \
  ./public/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
