I have a collection of small projects which are small vitejs applications. When building, a dist folder with some html, javascript and css files is created. I have a folder on my vps which contains all of these small projects.

To upload these files to the correct folder, I'm using this small deploy script:

#!/usr/bin/env bash

HOST=inhji.de
DIRECTORY=/var/www/projects/split-the-bill

rsync -chavzP --stats ./dist/ $HOST:$DIRECTORY