Files
sourceworks.dev/deploy.sh
T
2026-09-12 15:28:17 +02:00

16 lines
487 B
Bash

#!/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 cp -r ./static/css/* $out/css/ # copy the stylesheets over
sudo chmod 444 $out/** # make the files read-only
echo "[i] website deployed successfully!"