-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
46 lines (40 loc) · 1018 Bytes
/
Copy pathdeploy.bat
File metadata and controls
46 lines (40 loc) · 1018 Bytes
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
@echo off
echo Requirements Tracker Deployment Script
echo =====================================
echo.
echo Choose deployment method:
echo 1. Local development server (Flask)
echo 2. Docker with PostgreSQL
echo 3. Docker with SQLite (minimal)
echo.
set /p choice="Enter your choice (1-3): "
if "%choice%"=="1" goto local
if "%choice%"=="2" goto docker_postgres
if "%choice%"=="3" goto docker_sqlite
echo Invalid choice. Please run the script again.
pause
exit /b 1
:local
echo.
echo Starting local development server...
echo Make sure you have installed dependencies: pip install -r requirements-minimal.txt
echo.
python run.py
goto end
:docker_postgres
echo.
echo Building and starting Docker containers with PostgreSQL...
docker-compose up --build
goto end
:docker_sqlite
echo.
echo Building Docker container with SQLite...
docker build -t requirementstracker .
echo.
echo Starting container...
docker run -p 8080:8080 -v %cd%/data:/data requirementstracker
goto end
:end
echo.
echo Deployment complete!
pause