Repository navigation
Expand file tree
/
Copy pathstart.bat
More file actions
78 lines (67 loc) · 2.03 KB
/
Copy pathstart.bat
File metadata and controls
78 lines (67 loc) · 2.03 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo off
echo 🚀 WordPress Local Development Environment
echo ==========================================
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Python 3 is required but not installed.
echo Please install Python 3.8+ and try again.
pause
exit /b 1
)
REM Check if Docker is installed and running
docker --version >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Docker is required but not installed.
echo Please install Docker Desktop and try again.
pause
exit /b 1
)
docker info >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Docker is not running.
echo Please start Docker Desktop and try again.
pause
exit /b 1
)
REM Check if Docker Compose is installed
docker-compose --version >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Docker Compose is required but not installed.
echo Please install Docker Compose and try again.
pause
exit /b 1
)
REM Create virtual environment if it doesn't exist
if not exist "venv" (
echo 📦 Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo 🔧 Activating virtual environment...
call venv\Scripts\activate.bat
REM Install/upgrade dependencies
echo 📚 Installing dependencies...
python -m pip install --upgrade pip
pip install -r requirements.txt
REM Create necessary directories
echo 📁 Creating directories...
if not exist "wordpress-projects" mkdir wordpress-projects
if not exist "utils" mkdir utils
if not exist "templates" mkdir templates
if not exist "static\css" mkdir static\css
if not exist "static\js" mkdir static\js
echo.
echo ✅ Setup complete!
echo.
echo 🌐 Starting WordPress Local Development Environment...
echo 📂 Projects will be created in: .\wordpress-projects\
echo 🔗 Web interface will be available at: http://localhost:5001
echo.
echo ⚠️ Note: You may need administrator privileges for:
echo - Modifying hosts file (for local domains)
echo - Installing SSL certificates
echo.
REM Start the Flask application
python app.py
pause