Compare commits

..

3 Commits

Author SHA1 Message Date
mi
2e136b5625 🔨 convenience script for serving
Some checks failed
Deploy to VM / deploy (push) Failing after 7s
2025-11-18 14:03:39 +10:00
mi
6d62ba8fe5 🐳 docker compose 2025-11-18 13:57:48 +10:00
mi
710b3551d5 👷 include ssh passphrase 2025-11-18 13:57:36 +10:00
4 changed files with 30 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ jobs:
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
passphrase: ${{ secrets.VM_SSH_PASSPHRASE }}
key: ${{ secrets.VM_SSH_KEY }}
port: ${{ secrets.VM_PORT }}
script: |

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
.venv
.idea
.DS_Store
docker-compose.yml

15
docker-compose.yml Normal file
View File

@@ -0,0 +1,15 @@
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: hola-site
ports:
- "8080:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s

13
scripts/serve.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Convenience script to run a local HTTP server for the site
PORT="${1:-8080}"
SITE_DIR="$(dirname "$0")/../site"
echo "Starting HTTP server on port $PORT..."
echo "Site directory: $SITE_DIR"
echo "Open http://localhost:$PORT in your browser"
echo ""
echo "Press Ctrl+C to stop the server"
cd "$SITE_DIR" && python3 -m http.server "$PORT"