Compare commits
3 Commits
c760afa330
...
2e136b5625
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e136b5625 | |||
| 6d62ba8fe5 | |||
| 710b3551d5 |
@@ -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
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
.venv
|
||||
.idea
|
||||
.DS_Store
|
||||
docker-compose.yml
|
||||
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal 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
13
scripts/serve.sh
Executable 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"
|
||||
Reference in New Issue
Block a user