From 37c626a062e07f52b38565f0399c3cc62ffe09ec Mon Sep 17 00:00:00 2001 From: futile Date: Sat, 17 May 2025 00:00:08 +0100 Subject: [PATCH] update Caddyfile and justfile --- Caddyfile | 2 -- justfile | 23 +++-------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/Caddyfile b/Caddyfile index 8e230a2..8829644 100644 --- a/Caddyfile +++ b/Caddyfile @@ -7,5 +7,3 @@ futile.eu { file_server encode gzip zstd } - -import Caddyfile.d/*.caddyfile diff --git a/justfile b/justfile index a2ef515..a3ee38f 100644 --- a/justfile +++ b/justfile @@ -1,20 +1,3 @@ -set windows-shell := ["pwsh", "-NoLogo", "-Command"] - -server := "futile@futile.eu" -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 +setup: + sudo mv Caddyfile /etc/caddy/Caddyfile.d/futile.eu.caddyfile + sudo systemctl reload caddy