Skip to content

Instantly share code, notes, and snippets.

@pumbaEO
Last active April 12, 2024 12:14
Show Gist options
  • Save pumbaEO/9a52710dfa519c060dc45e9b81b9af5e to your computer and use it in GitHub Desktop.
Save pumbaEO/9a52710dfa519c060dc45e9b81b9af5e to your computer and use it in GitHub Desktop.
chcp 1251
set OSCRIPT=D:\SOFT\onescript\bin\oscript.exe
set DEPLOYKA=D:\SOFT\onescript\deployka\src\
set EPFROOT=D:\SOFT\onescript\epf
set STORAGEPATH=tcp://storage.service.consul/erp
set DATABASENAME=ERP
set DATABASE=/S"onec.service.consul\%DATABASENAME%"
set VERSION=8.3.9.1818
set BUILDPATH=d:\Soft\Enterprise
start ras.bat
rem timeout /t 800
%OSCRIPT% %DEPLOYKA%\deployka.os loadrepo %DATABASE% %STORAGEPATH% -db-user base -db-pwd 123 -storage-user base -storage-pwd "123" -v8version %VERSION%
%OSCRIPT% %DEPLOYKA%\deployka.os session lock -ras hd-terminal -rac "C:\Program Files\1cv8\%VERSION%\bin\rac.exe" -db %DATABASENAME% -db-user base -db-pwd 123 -lockmessage "Плановое обновление запуск через 5 м." -lockstartat 100 -lockuccode test
timeout /t 110
%OSCRIPT% %DEPLOYKA%\deployka.os session kill -ras localhost -rac "C:\Program Files\1cv8\%VERSION%\bin\rac.exe" -db %DATABASENAME% -lockuccode test -lockmessage "Плановое обновление, 5 мин" -db-user base -db-pwd 123
%OSCRIPT% %DEPLOYKA%\deployka.os dbupdate %DATABASE% -db-user base -db-pwd 123 -uccode test -v8version %VERSION%
%OSCRIPT% %DEPLOYKA%\deployka.os run %DATABASE% -uccode test -command "ЗапуститьОбновлениеИнформационнойБазы;ЗавершитьРаботуСистемы;" -execute %EPFROOT%\ЗакрытьПредприятие.epf -v8version %VERSION% -db-user base -db-pwd 123
%OSCRIPT% %DEPLOYKA%\deployka.os run %DATABASE% -uccode test -command "%BUILDPATH%\cfe\ДоработкиПродажи.cfe;%BUILDPATH%\loadext.log;ЗавершитьРаботуСистемы;" -execute %EPFROOT%\ЗагрузитьРасширение.epf -v8version %VERSION% -db-user base -db-pwd 123
%OSCRIPT% %DEPLOYKA%\deployka.os run %DATABASE% -uccode test -command "%BUILDPATH%\cfe\Pushsmsservice.cfe;%BUILDPATH%\loadext.log;ЗавершитьРаботуСистемы;" -execute %EPFROOT%\ЗагрузитьРасширение.epf -v8version %VERSION% -db-user base -db-pwd 123
%OSCRIPT% %DEPLOYKA%\deployka.os session unlock -ras hd-terminal -rac "C:\Program Files\1cv8\%VERSION%\bin\rac.exe" -db %DATABASENAME% -db-user base -db-pwd 123
chcp 1251
set VERSION=8.3.9.1818
"C:\Program Files\1cv8\%VERSION%\bin\ras.exe" cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment