fix redirect url to port
This commit is contained in:
28
setup-env.sh
Executable file
28
setup-env.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# CKB Production Environment Setup Script
|
||||
echo "🔧 Setting up CKB Production Environment..."
|
||||
|
||||
# Check if .env file exists
|
||||
if [ -f ".env" ]; then
|
||||
echo "⚠️ .env file already exists. Creating backup..."
|
||||
cp .env .env.backup.$(date +%Y%m%d_%H%M%S)
|
||||
fi
|
||||
|
||||
# Copy from example
|
||||
echo "📋 Copying from production example..."
|
||||
cp docker/env.example.production .env
|
||||
|
||||
# Generate APP_KEY
|
||||
echo "🔑 Generating APP_KEY..."
|
||||
docker-compose -f docker-compose.prod.yml run --rm app php artisan key:generate --force
|
||||
|
||||
echo "✅ Environment setup completed!"
|
||||
echo ""
|
||||
echo "📝 Please edit .env file and update the following:"
|
||||
echo " - DB_PASSWORD (change from CHANGE_THIS_SECURE_PASSWORD)"
|
||||
echo " - DB_ROOT_PASSWORD (change from CHANGE_THIS_ROOT_PASSWORD)"
|
||||
echo " - REDIS_PASSWORD (change from CHANGE_THIS_REDIS_PASSWORD)"
|
||||
echo " - Mail configuration if needed"
|
||||
echo ""
|
||||
echo "🚀 After updating .env, run: ./deploy.sh"
|
||||
Reference in New Issue
Block a user