Add one-click deployment batch file
DEPLOY-NOW.bat - Double-click to deploy on VM - Checks prerequisites - Runs deploy-to-vm.ps1 automatically - No command-line needed Usage: Copy repo to VM, double-click DEPLOY-NOW.bat
This commit is contained in:
24
DEPLOY-NOW.bat
Normal file
24
DEPLOY-NOW.bat
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
@echo off
|
||||||
|
REM ShopDB Quick Deploy - Double-click this file on the VM
|
||||||
|
REM This will deploy ShopDB Docker in one click
|
||||||
|
|
||||||
|
echo ========================================
|
||||||
|
echo ShopDB Docker Quick Deploy
|
||||||
|
echo ========================================
|
||||||
|
echo.
|
||||||
|
|
||||||
|
REM Check if we're in the right directory
|
||||||
|
if not exist "docker-compose.prebuilt.yml" (
|
||||||
|
echo ERROR: Not in shopdb-flask directory
|
||||||
|
echo Please run this from the repository root
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
echo Starting deployment...
|
||||||
|
echo.
|
||||||
|
|
||||||
|
REM Run PowerShell deployment script
|
||||||
|
powershell.exe -ExecutionPolicy Bypass -File "%~dp0deploy-to-vm.ps1" -SiteName "shopdb-vm"
|
||||||
|
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user