20 lines
445 B
Batchfile
20 lines
445 B
Batchfile
@echo off
|
|
|
|
REM Build Angular frontend
|
|
cd .\frontend
|
|
call npm install
|
|
call ng build --optimization
|
|
cd ..
|
|
|
|
REM Copy Angular frontend files to Spring Boot backend webapp directory
|
|
xcopy /E /I /Y frontend\dist\syncfusion-gantt\ backend\src\main\resources\static
|
|
|
|
REM Build Spring Boot backend
|
|
cd .\backend
|
|
call mvn clean install
|
|
cd ..
|
|
|
|
REM Deploy applications on Tomcat
|
|
copy /Y backend\target\backend.war ..\Tomcat\webapps
|
|
|
|
echo Deployment complete! |