# https://taskfile.dev version: '3' tasks: dev : cmds: - fastapi dev calculator/main.py --reload deploy: cmds: - ssh -p 11335 app@ssh.rosti.cz mkdir -p /srv/app/cache - rsync -av -e "ssh -p 11335" --delete ./calculator app@ssh.rosti.cz:/srv/app/ - rsync -av -e "ssh -p 11335" ./requirements.txt app@ssh.rosti.cz:/srv/app/ - ssh -p 11335 app@ssh.rosti.cz /srv/venv/bin/pip install -r /srv/app/requirements.txt - ssh -p 11335 app@ssh.rosti.cz supervisorctl restart app