Files

15 lines
424 B
Bash
Executable File

#!/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
echo "[i] website deployed successfully!"