dn42-info/deploy.sh

20 lines
370 B
Bash
Raw Normal View History

2024-10-11 11:19:34 +02:00
#!/bin/bash
# Change to the directory containing the files (assuming it's named 'dist')
cd dist
# Initialize FTP connection
ftp -n << EOF
open $FTP_SERVER
user $FTP_USER $FTP_PASSWORD
2024-10-11 11:26:42 +02:00
put -r .
put ../geofeed.csv
2024-10-11 11:19:34 +02:00
# Close FTP connection
bye
EOF
# Refresh cache
curl -H "AccessKey: $ACCESS_KEY" "https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.m724.eu&async=false"