diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 8f24f11..0000000 --- a/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Deployment configuration (contains sensitive server details) -deploy.config - -# OS files -.DS_Store -Thumbs.db - -# Editor files -.vscode/ -.idea/ -*.swp -*.swo -*~ - diff --git a/README.md b/README.md index 32ee0c7..b448f02 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,4 @@ The `index.html` is ready in the `public` folder. ## How to deploy -1. Copy `deploy.config.example` to `deploy.config` -2. Fill in your server details in `deploy.config` (host, user, remote path) -3. Run `./deploy.sh` to sync the `public` folder to your remote webserver +Somehow get the `public` folder behind a webserver manually and sort out DNS. diff --git a/deploy.config.example b/deploy.config.example deleted file mode 100644 index 1c84f53..0000000 --- a/deploy.config.example +++ /dev/null @@ -1,21 +0,0 @@ -# Deployment Configuration -# Copy this file to deploy.config and fill in your server details -# deploy.config is gitignored to keep your credentials safe - -# Remote server hostname or IP address -REMOTE_HOST="example.com" - -# SSH username for the remote server -REMOTE_USER="username" - -# Remote path where the website should be deployed -# This should be the directory served by your webserver (e.g., /var/www/html, /home/username/public_html) -REMOTE_PATH="/var/www/html" - -# Optional: Path to SSH private key (if not using default ~/.ssh/id_rsa) -# Leave empty to use default SSH key -SSH_KEY="" - -# Optional: SSH port (defaults to 22 if not specified) -# SSH_PORT="22" - diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 5cf9692..0000000 --- a/deploy.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Deployment script for pablohere website -# This script syncs the public folder to a remote webserver - -set -e # Exit on error - -# Load deployment configuration -if [ ! -f "deploy.config" ]; then - echo "Error: deploy.config file not found!" - echo "Please copy deploy.config.example to deploy.config and fill in your server details." - exit 1 -fi - -source deploy.config - -# Validate required variables -if [ -z "$REMOTE_HOST" ] || [ -z "$REMOTE_USER" ] || [ -z "$REMOTE_PATH" ]; then - echo "Error: Required variables not set in deploy.config" - echo "Please ensure REMOTE_HOST, REMOTE_USER, and REMOTE_PATH are set." - exit 1 -fi - -# Use rsync to sync files -echo "Deploying public folder to $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH" -rsync -avz --delete \ - --exclude='.git' \ - --exclude='.DS_Store' \ - $SSH_OPTS \ - public/ \ - $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH - -echo "Deployment complete!" - diff --git a/public/index.html b/public/index.html index 1c18d0d..1097fe2 100644 --- a/public/index.html +++ b/public/index.html @@ -69,16 +69,18 @@

You can contact me on:

If you are looking for my CV, no need to reach out, @@ -110,21 +112,14 @@

My projects

Some of the projects I've shared publicly:

@@ -147,18 +142,6 @@

Writings

Sometimes I like to jot down ideas and drop them here.