update Caddyfile and justfile

This commit is contained in:
2025-05-17 00:00:08 +01:00
parent fbe953c960
commit 37c626a062
2 changed files with 3 additions and 22 deletions
-2
View File
@@ -7,5 +7,3 @@ futile.eu {
file_server file_server
encode gzip zstd encode gzip zstd
} }
import Caddyfile.d/*.caddyfile
+3 -20
View File
@@ -1,20 +1,3 @@
set windows-shell := ["pwsh", "-NoLogo", "-Command"] setup:
sudo mv Caddyfile /etc/caddy/Caddyfile.d/futile.eu.caddyfile
server := "futile@futile.eu" sudo systemctl reload caddy
deploy := "/var/www/futile.eu"
deploy-site:
scp -pr static/ index.css index.html index.js {{server}}:{{deploy}}
ssh {{server}} 'chmod -R o+rX {{deploy}}/static/'
deploy-caddy:
scp -pr Caddyfile {{server}}:Caddyfile
ssh {{server}} 'sudo mv Caddyfile /etc/caddy/Caddyfile'
ssh {{server}} 'sudo systemctl reload caddy'
deploy: deploy-site deploy-caddy
push-changes:
git push -u origin main
full-deploy: push-changes deploy