-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefresh_db.bat
More file actions
36 lines (32 loc) · 1019 Bytes
/
refresh_db.bat
File metadata and controls
36 lines (32 loc) · 1019 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
@echo off
echo ====================================================
echo Ordera Database ^& Cache Refresh
echo ====================================================
echo.
:: 1. Clear Local SQLite Databases
echo [1/3] Clearing local SQLite databases...
del /q ordera*.db 2>nul
echo Done.
:: 2. Clear Docker Volumes (PostgreSQL ^& Redis Cache)
echo [2/3] Resetting Docker containers and volumes...
docker-compose down -v
if %errorlevel% neq 0 (
echo [SKIP] Docker is not running or no containers to stop.
) else (
echo Docker volumes cleared.
)
:: 3. Restart Docker
echo [3/3] Restarting Docker Production Stack...
docker-compose up -d
if %errorlevel% neq 0 (
echo [SKIP] Docker failed to start. Please check Docker Desktop.
) else (
echo Docker services restarted fresh.
)
echo.
echo ====================================================
echo ✅ Refresh Complete!
echo All databases are empty and ready for fresh signup.
echo ====================================================
echo.
pause