Build: Optimization of build process
This commit is contained in:
parent
9873ea6fa0
commit
5c492ee583
@ -12,11 +12,13 @@ call yarn build
|
||||
REM call yarn wipe
|
||||
call yarn deploy
|
||||
|
||||
REM copy nginx configurations to deploy folder
|
||||
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y
|
||||
powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf"
|
||||
|
||||
xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y
|
||||
|
||||
REM fix paths
|
||||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf"
|
||||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf"
|
||||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf"
|
||||
@ -27,7 +29,12 @@ powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf
|
||||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf"
|
||||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf"
|
||||
|
||||
REM restart nginx
|
||||
call sc stop nginx
|
||||
|
||||
REM sleep 5 seconds
|
||||
call ping 127.0.0.1 -n 6 > nul
|
||||
|
||||
call sc start nginx
|
||||
|
||||
pause
|
||||
|
18
build/buildAndDeploy.bat
Normal file
18
build/buildAndDeploy.bat
Normal file
@ -0,0 +1,18 @@
|
||||
PUSHD %~dp0
|
||||
call runasadmin.bat "%~dpnx0"
|
||||
if %errorlevel% == 0 (
|
||||
|
||||
call start\stop.bat
|
||||
|
||||
PUSHD %~dp0..
|
||||
|
||||
echo "FRONT-END static"
|
||||
call build\build.static.bat
|
||||
|
||||
echo "BACK-END"
|
||||
call build\build.backend.bat
|
||||
|
||||
start /b call build\start\start.bat
|
||||
|
||||
pause
|
||||
)
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Calendar"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.Calendar/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.CRM"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.CRM/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Files"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.Files/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Mail"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.Mail/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Studio"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.People/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Projects"
|
||||
call set BROWSER=none&&npm start --prefix ../../products/ASC.Projects/Client
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Studio"
|
||||
call set BROWSER=none&&npm start --prefix ../../web/ASC.Web.Client/
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Editor"
|
||||
call set BROWSER=none&&npm start --prefix ../../web/ASC.Web.Editor/
|
@ -1,2 +0,0 @@
|
||||
echo "RUN ASC.Web.Login"
|
||||
call set BROWSER=none&&npm start --prefix ../../web/ASC.Web.Login/
|
@ -1,8 +0,0 @@
|
||||
PUSHD %~dp0..
|
||||
call runasadmin.bat "%~dpnx0"
|
||||
|
||||
if %errorlevel% == 0 (
|
||||
for /f %%f in ('dir /b run ^| findstr /v /i "\Client.bat$"') do (
|
||||
call nssm start Onlyoffice%%~nf
|
||||
)
|
||||
)
|
@ -1,8 +0,0 @@
|
||||
PUSHD %~dp0..
|
||||
call runasadmin.bat "%~dpnx0"
|
||||
|
||||
if %errorlevel% == 0 (
|
||||
for /f %%f in ('dir /b run ^| findstr /v /i "\Client.bat$"') do (
|
||||
call nssm stop Onlyoffice%%~nf
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user