From c3b432f7b8c6e06d592f4ffa373474add389bd58 Mon Sep 17 00:00:00 2001 From: odweta Date: Sat, 12 Sep 2026 14:52:56 +0200 Subject: [PATCH] add: deploy script --- deploy.sh | 15 +++++++++++++++ {css => static/css}/blink-cursor.css | 0 {css => static/css}/corrections.css | 0 {css => static/css}/glitch.css | 0 {css => static/css}/style.css | 0 favicon.ico => static/favicon.ico | Bin index.html => static/index.html | 0 7 files changed, 15 insertions(+) create mode 100644 deploy.sh rename {css => static/css}/blink-cursor.css (100%) rename {css => static/css}/corrections.css (100%) rename {css => static/css}/glitch.css (100%) rename {css => static/css}/style.css (100%) rename favicon.ico => static/favicon.ico (100%) rename index.html => static/index.html (100%) diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..42f5f06 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# this script installs this project into the default root of an apache2 webserver + +set -euxo pipefail + +out=/var/www/html + +echo "[i] deploying website..." + +sudo rm -fr $out/** # nuke the previous state +sudo cp -r ./static/* $out/ # copy the source files into the prod. env. +sudo chmod 444 $out/** # make the files read-only + +echo "[i] website deployed successfully!" \ No newline at end of file diff --git a/css/blink-cursor.css b/static/css/blink-cursor.css similarity index 100% rename from css/blink-cursor.css rename to static/css/blink-cursor.css diff --git a/css/corrections.css b/static/css/corrections.css similarity index 100% rename from css/corrections.css rename to static/css/corrections.css diff --git a/css/glitch.css b/static/css/glitch.css similarity index 100% rename from css/glitch.css rename to static/css/glitch.css diff --git a/css/style.css b/static/css/style.css similarity index 100% rename from css/style.css rename to static/css/style.css diff --git a/favicon.ico b/static/favicon.ico similarity index 100% rename from favicon.ico rename to static/favicon.ico diff --git a/index.html b/static/index.html similarity index 100% rename from index.html rename to static/index.html