From 0c4b0fd48c0e087a2ae72007e298e7b74a09c670 Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Sat, 6 Sep 2025 22:44:20 +0200 Subject: [PATCH] Re-enable automatic deployment with proper server setup - Remove deployment disable flag from CI/CD pipeline - Update documentation to reflect deployment user SSH key setup - Enable automated deployment now that production server is configured - The deployment user with SSH key will handle git operations automatically --- .github/workflows/ci-cd.yml | 2 +- docs/production-server-setup.md | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 69f4e40..ddeacb5 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -176,7 +176,7 @@ jobs: deploy: needs: build runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' && false # Disabled until production server is set up + if: github.ref == 'refs/heads/main' environment: production diff --git a/docs/production-server-setup.md b/docs/production-server-setup.md index 45cdeff..16abaeb 100644 --- a/docs/production-server-setup.md +++ b/docs/production-server-setup.md @@ -50,11 +50,15 @@ sudo apt install git -y ```bash # Create project directory sudo mkdir -p /opt/stiftung -sudo chown $USER:$USER /opt/stiftung +sudo chown deployment:deployment /opt/stiftung cd /opt/stiftung -# Clone your repository -git clone https://github.com/remmerinio/stiftung-management-system.git . +# Clone your repository (the deployment user with SSH key will handle this) +# If you have SSH key configured for the deployment user: +git clone git@github.com:remmerinio/stiftung-management-system.git . + +# Alternative: If you need to use HTTPS with Personal Access Token: +# git clone https://github.com/remmerinio/stiftung-management-system.git . # Copy environment template cp env-template.txt app/.env