[성현모] VPKI 프로젝트 Import
This commit is contained in:
9
Projects/VPKI/Tools/Tools_DB_Create.bat
Normal file
9
Projects/VPKI/Tools/Tools_DB_Create.bat
Normal file
@ -0,0 +1,9 @@
|
||||
::도커 재실행
|
||||
@echo off
|
||||
|
||||
cd ../VPKI.DB/DBPatch
|
||||
|
||||
::start CreateAccountDB.bat
|
||||
::start CreateDataDB.bat
|
||||
|
||||
timeout /t 3
|
||||
7
Projects/VPKI/Tools/Tools_DB_Scaffold.bat
Normal file
7
Projects/VPKI/Tools/Tools_DB_Scaffold.bat
Normal file
@ -0,0 +1,7 @@
|
||||
cd ../VPKI/VPKI.Library.DB
|
||||
|
||||
::AccountDB
|
||||
dotnet ef dbcontext scaffold "server=127.0.0.1; user id=VPKI; password=Kefico!@34; database=VPKI_AccountDB; TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace DB.VPKI_AccountDB --context-dir DB\VPKI_AccountDB\Context --output-dir DB\VPKI_AccountDB\Tables -f
|
||||
|
||||
::DataDB
|
||||
dotnet ef dbcontext scaffold "server=127.0.0.1; user id=VPKI; password=Kefico!@34; database=VPKI_DataDB; TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace DB.VPKI_DataDB --context-dir DB\VPKI_DataDB\Context --output-dir DB\VPKI_DataDB\Tables -f
|
||||
9
Projects/VPKI/Tools/Tools_DB_Update.bat
Normal file
9
Projects/VPKI/Tools/Tools_DB_Update.bat
Normal file
@ -0,0 +1,9 @@
|
||||
::도커 재실행
|
||||
@echo off
|
||||
|
||||
cd ../VPKI.DB/DBPatch
|
||||
|
||||
::start UpdateAccountDB.bat
|
||||
start UpdateDataDB.bat
|
||||
|
||||
timeout /t 3
|
||||
11
Projects/VPKI/Tools/Tools_Docker_Build.VPKI.WebApi.bat
Normal file
11
Projects/VPKI/Tools/Tools_Docker_Build.VPKI.WebApi.bat
Normal file
@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
|
||||
cd ../VPKI
|
||||
|
||||
::dotnet 빌드
|
||||
dotnet build ..\VPKI\VPKI.Web.Api\VPKI.Web.Api.csproj
|
||||
|
||||
::도커 빌드
|
||||
docker build -f ..\VPKI\VPKI.Web.Api\Dockerfile . -t vpki.web.api
|
||||
|
||||
timeout /t 3
|
||||
9
Projects/VPKI/Tools/Tools_Docker_Restart.bat
Normal file
9
Projects/VPKI/Tools/Tools_Docker_Restart.bat
Normal file
@ -0,0 +1,9 @@
|
||||
::도커 재실행
|
||||
@echo off
|
||||
|
||||
cd ../VPKI
|
||||
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
|
||||
timeout /t 3
|
||||
8
Projects/VPKI/Tools/Tools_Docker_SystemLogViewer.bat
Normal file
8
Projects/VPKI/Tools/Tools_Docker_SystemLogViewer.bat
Normal file
@ -0,0 +1,8 @@
|
||||
::도커 이미지 안에 로그 보기위해 최신 날짜로 열기
|
||||
@echo off
|
||||
|
||||
set YEAR=%date:~0,4%
|
||||
set MONTH=%date:~5,2%
|
||||
set DAY=%date:~8,2%
|
||||
|
||||
Powershell.exe get-content ..\VPKI\Docker_log\%YEAR%\%MONTH%\%date%.log -wait -tail 20
|
||||
Reference in New Issue
Block a user