Production deployment with Docker and full system fixes
- Added Docker support (Dockerfiles, docker-compose.yml) - Fixed authentication and authorization (token storage, CORS, permissions) - Fixed API response transformations for all modules - Added production deployment scripts and guides - Fixed frontend permission checks and module access - Added database seeding script for production - Complete documentation for deployment and configuration Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
30
deploy.sh
Executable file
30
deploy.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Z.CRM Deployment Script
|
||||
set -e
|
||||
|
||||
echo "🚀 Building Z.CRM Docker Images..."
|
||||
|
||||
# Login to Docker Hub
|
||||
echo "📦 Logging in to Docker Hub..."
|
||||
echo "_b5pGcG_uSMw@3z" | docker login -u "info@dbtglobal.net" --password-stdin
|
||||
|
||||
# Build images
|
||||
echo "🔨 Building backend image..."
|
||||
docker build -t info@dbtglobal.net/zerp-backend:latest ./backend
|
||||
|
||||
echo "🔨 Building frontend image..."
|
||||
docker build -t info@dbtglobal.net/zerp-frontend:latest ./frontend
|
||||
|
||||
# Push to Docker Hub
|
||||
echo "⬆️ Pushing backend image..."
|
||||
docker push info@dbtglobal.net/zerp-backend:latest
|
||||
|
||||
echo "⬆️ Pushing frontend image..."
|
||||
docker push info@dbtglobal.net/zerp-frontend:latest
|
||||
|
||||
echo "✅ Build and push completed!"
|
||||
echo ""
|
||||
echo "📋 Next steps:"
|
||||
echo "1. SSH to your server: ssh root@37.60.249.71"
|
||||
echo "2. Run the deployment commands on the server"
|
||||
Reference in New Issue
Block a user