add update nginx config to domain and create production setup docker
This commit is contained in:
@@ -82,13 +82,25 @@ check_docker() {
|
||||
# Function to setup environment file
|
||||
setup_env() {
|
||||
if [[ ! -f .env ]]; then
|
||||
if [[ -f docker/env.example ]]; then
|
||||
print_status "Copying environment file..."
|
||||
cp docker/env.example .env
|
||||
print_warning "Please edit .env file to configure your application"
|
||||
if [[ $ENVIRONMENT == "dev" ]]; then
|
||||
if [[ -f docker/env.example.local ]]; then
|
||||
print_status "Copying local environment file..."
|
||||
cp docker/env.example.local .env
|
||||
print_success "Local development environment configured"
|
||||
else
|
||||
print_error "Local environment template not found: docker/env.example.local"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
print_error "No environment template found. Please create .env file manually."
|
||||
exit 1
|
||||
if [[ -f docker/env.example.production ]]; then
|
||||
print_status "Copying production environment file..."
|
||||
cp docker/env.example.production .env
|
||||
print_warning "⚠️ IMPORTANT: Edit .env and change all CHANGE_THIS_* passwords!"
|
||||
print_warning "Please configure production settings before continuing"
|
||||
else
|
||||
print_error "Production environment template not found: docker/env.example.production"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user