-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·41 lines (34 loc) · 1.38 KB
/
Copy pathdev.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# PHPMark Framework Development Script
echo "🚀 Starting PHPMark Framework development environment..."
# Check if docker-compose is available
if ! command -v docker-compose &> /dev/null; then
echo "❌ docker-compose not found. Please install Docker Compose."
exit 1
fi
# Stop any existing containers
echo "🛑 Stopping existing containers..."
docker-compose -f docker-compose.dev.yml down 2>/dev/null
# Build and start the development container
echo "🔨 Building development container..."
docker-compose -f docker-compose.dev.yml up --build -d
# Wait a moment for startup
sleep 3
# Check if container is running
if docker-compose -f docker-compose.dev.yml ps | grep -q "Up"; then
echo "✅ PHPMark Framework started successfully!"
echo ""
echo "📍 Site available at: http://localhost:3000"
echo "📁 Files are mounted with hot reload enabled"
echo "🔧 PHP OPcache configured for development (2s revalidation)"
echo "🚫 All caching disabled for instant updates"
echo ""
echo "📝 To view logs: docker-compose -f docker-compose.dev.yml logs -f"
echo "🛑 To stop: docker-compose -f docker-compose.dev.yml down"
echo ""
echo "📚 Edit includes/config.php to customize your site settings"
else
echo "❌ Failed to start development server"
echo "📋 Check logs: docker-compose -f docker-compose.dev.yml logs"
exit 1
fi