A small deploy script
![](https://inhji.de/media/pages/blog/a-small-deploy-script/f1d93594d0-1723142816/jason-blackeye-iblo7-n4z94-unsplash-300x.jpg 300w, https://inhji.de/media/pages/blog/a-small-deploy-script/f1d93594d0-1723142816/jason-blackeye-iblo7-n4z94-unsplash-600x.jpg 600w, https://inhji.de/media/pages/blog/a-small-deploy-script/f1d93594d0-1723142816/jason-blackeye-iblo7-n4z94-unsplash-900x.jpg 900w, https://inhji.de/media/pages/blog/a-small-deploy-script/f1d93594d0-1723142816/jason-blackeye-iblo7-n4z94-unsplash-1200x.jpg 1200w, https://inhji.de/media/pages/blog/a-small-deploy-script/f1d93594d0-1723142816/jason-blackeye-iblo7-n4z94-unsplash-1800x.jpg 1800w)
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