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