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
This commit is contained in:
2
.github/workflows/ci-cd.yml
vendored
2
.github/workflows/ci-cd.yml
vendored
@@ -176,7 +176,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
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
|
environment: production
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,15 @@ sudo apt install git -y
|
|||||||
```bash
|
```bash
|
||||||
# Create project directory
|
# Create project directory
|
||||||
sudo mkdir -p /opt/stiftung
|
sudo mkdir -p /opt/stiftung
|
||||||
sudo chown $USER:$USER /opt/stiftung
|
sudo chown deployment:deployment /opt/stiftung
|
||||||
cd /opt/stiftung
|
cd /opt/stiftung
|
||||||
|
|
||||||
# Clone your repository
|
# Clone your repository (the deployment user with SSH key will handle this)
|
||||||
git clone https://github.com/remmerinio/stiftung-management-system.git .
|
# 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
|
# Copy environment template
|
||||||
cp env-template.txt app/.env
|
cp env-template.txt app/.env
|
||||||
|
|||||||
Reference in New Issue
Block a user