-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/mobile-main-button
- Loading branch information
Showing
11 changed files
with
110 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
@echo off | ||
|
||
echo "##########################################################" | ||
echo "######### Start build and deploy #######################" | ||
echo "##########################################################" | ||
|
||
echo. | ||
|
||
PUSHD %~dp0 | ||
call runasadmin.bat "%~dpnx0" | ||
if %errorlevel% == 0 ( | ||
|
||
call start\stop.bat | ||
if %errorlevel% == 0 ( | ||
|
||
PUSHD %~dp0.. | ||
call start\stop.bat nopause | ||
|
||
echo "FRONT-END (for start run command 'yarn start' inside the root folder)" | ||
call build\build.frontend.bat | ||
call build.frontend.bat nopause | ||
|
||
echo "BACK-END" | ||
call build\build.backend.bat | ||
call build.backend.bat nopause | ||
|
||
call start\start.bat nopause | ||
|
||
start /b call build\start\start.bat | ||
echo. | ||
|
||
pause | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$PSversionMajor = $PSVersionTable.PSVersion | sort-object major | ForEach-Object {$_.major} | ||
$PSversionMinor = $PSVersionTable.PSVersion | sort-object minor | ForEach-Object {$_.minor} | ||
|
||
if ($PSversionMajor -lt 7 -or $PSversionMinor -lt 2) { | ||
Write-Error "Powershell version must be greater than or equal to 7.2. Press Enter to exit." | ||
Pause | ||
exit | ||
} | ||
|
||
$WorkDir = "$(Split-Path -Parent $PSScriptRoot)\run"; | ||
$CommandName = "$($args[0])"; | ||
|
||
#Write-Output "Starting $($CommandName) services at time: $(Get-Date -Format HH:mm:ss)" | ||
#Write-Output "" | ||
|
||
Get-ChildItem -Path $WorkDir | ForEach-Object -ThrottleLimit 20 -Parallel { | ||
$ServiceName = "Onlyoffice$([System.IO.Path]::GetFileNameWithoutExtension($_))"; | ||
|
||
switch ( $Using:CommandName ) | ||
{ | ||
"start" { Start-Service -InputObject $(Get-Service -Name "$ServiceName") } | ||
"stop" { Stop-Service -InputObject $(Get-Service -Name "$ServiceName") } | ||
"restart" { Restart-Service -InputObject $(Get-Service -Name "$ServiceName") } | ||
} | ||
|
||
if( $? ) | ||
{ | ||
Write-Output "$ServiceName $($Using:CommandName) service has been done" | ||
} | ||
} | ||
|
||
#Write-Output "" | ||
#Write-Output "End $($CommandName) services at time: $(Get-Date -Format HH:mm:ss)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters