From 6c9db5c999dd6a0c49bde6b3f1c555abee1f80d1 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Sun, 8 Dec 2024 23:28:53 +0100 Subject: [PATCH] Deployment (doc) --- Makefile | 4 ++++ src/.htaccess | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 src/.htaccess diff --git a/Makefile b/Makefile index f7e9108..a3bc3fb 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,6 @@ start: pnpm dlx serve src + +# Require a password. Not versioned. +deploy: + lftp -e "mirror -R ./ ftp://dhufpvp@ftp.cluster029.hosting.ovh.net/www" -u dhufpvp \ No newline at end of file diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..5913d92 --- /dev/null +++ b/src/.htaccess @@ -0,0 +1,6 @@ +RewriteEngine On + +ErrorDocument 404 /404.html + +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]