Disable deployment until production server is configured
- Temporarily disable automatic deployment to prevent CI failures - Add comprehensive production server setup documentation - Update deployment guide with clear setup requirements - Format manually edited code files for CI compliance - Provide step-by-step server configuration instructions - Enable safe CI/CD pipeline operation without deployment errors The deployment will be re-enabled once the production server is properly set up following the new documentation.
This commit is contained in:
@@ -1,14 +1,48 @@
|
||||
# Deployment Guide
|
||||
|
||||
## Production Deployment Status ✅
|
||||
## ⚠️ **Production Server Setup Required**
|
||||
|
||||
The automated deployment pipeline is now configured and ready!
|
||||
**IMPORTANT**: The automated deployment is currently disabled until your production server is properly configured.
|
||||
|
||||
### Current Status:
|
||||
- ✅ CI/CD Pipeline: Fully configured
|
||||
- ✅ Code Quality: Automated checks working
|
||||
- ✅ Docker Images: Building successfully
|
||||
- ❌ Production Server: **Needs setup** (deployment disabled)
|
||||
|
||||
### Required Setup Steps:
|
||||
|
||||
1. **Set up your production server** following the detailed guide:
|
||||
📖 **[Complete Production Server Setup Guide](docs/production-server-setup.md)**
|
||||
|
||||
2. **Enable automatic deployment** once server is ready by editing `.github/workflows/ci-cd.yml`
|
||||
|
||||
### Deployment Secrets Configured:
|
||||
- ✅ `PROD_HOST` - Production server address
|
||||
- ✅ `PROD_USERNAME` - SSH username (deployment)
|
||||
- ✅ `PROD_SSH_KEY` - SSH private key for authentication
|
||||
|
||||
### Why Deployment is Disabled:
|
||||
|
||||
The CI/CD pipeline was failing because:
|
||||
- `/opt/stiftung` directory doesn't exist on server
|
||||
- Docker is not installed on production server
|
||||
- Git repository not cloned to server
|
||||
- Environment variables not configured
|
||||
|
||||
### Re-enabling Deployment:
|
||||
|
||||
After completing the server setup, edit `.github/workflows/ci-cd.yml` and change:
|
||||
|
||||
```yaml
|
||||
if: github.ref == 'refs/heads/main' && false # Disabled until production server is set up
|
||||
```
|
||||
|
||||
To:
|
||||
```yaml
|
||||
if: github.ref == 'refs/heads/main'
|
||||
```
|
||||
|
||||
### Deployment Process:
|
||||
|
||||
1. **Automatic Triggers:**
|
||||
|
||||
Reference in New Issue
Block a user