Merge branch 'add-prod-install-script' into 'main'

add: deploy script

See merge request odweta/sourceworks.dev!4
This commit is contained in:
odweta
2026-09-12 14:53:24 +02:00
7 changed files with 15 additions and 0 deletions
+15
View File
@@ -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!"
View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File