f69efb67ad
- Tauri desktop app (apps/desktop) - Python Django API service (services/api) - Deployment scripts and docs
24 lines
735 B
Batchfile
24 lines
735 B
Batchfile
@echo off
|
|
setlocal
|
|
call "%~dp0config.bat"
|
|
|
|
echo [AbyssInfo] Uploading Netmaker installer and cached assets ...
|
|
%SCP_BASE% "%~dp0vendor\nm-quick.sh" %SERVER_USER%@%SERVER_HOST%:/tmp/nm-quick.sh
|
|
if errorlevel 1 exit /b 1
|
|
|
|
%SCP_BASE% -r "%~dp0vendor\netmaker-assets" %SERVER_USER%@%SERVER_HOST%:/tmp/netmaker-assets
|
|
if errorlevel 1 exit /b 1
|
|
|
|
%SCP_BASE% "%~dp0remote\deploy_netmaker.sh" %SERVER_USER%@%SERVER_HOST%:/tmp/abyssinfo_deploy_netmaker.sh
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo [AbyssInfo] Deploying Netmaker ...
|
|
%SSH_BASE% "chmod +x /tmp/abyssinfo_deploy_netmaker.sh && /tmp/abyssinfo_deploy_netmaker.sh"
|
|
if errorlevel 1 (
|
|
echo [AbyssInfo] Netmaker deployment failed.
|
|
exit /b 1
|
|
)
|
|
|
|
echo [AbyssInfo] Netmaker deployment completed.
|
|
|