[성현모] VPKI 프로젝트 Import

This commit is contained in:
SHM
2025-04-24 15:42:47 +09:00
parent 0a6016bc95
commit 8dcddd431b
188 changed files with 280230 additions and 68 deletions

View File

@ -0,0 +1,9 @@
::도커 재실행
@echo off
cd ../VPKI.DB/DBPatch
::start CreateAccountDB.bat
::start CreateDataDB.bat
timeout /t 3

View 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

View File

@ -0,0 +1,9 @@
::도커 재실행
@echo off
cd ../VPKI.DB/DBPatch
::start UpdateAccountDB.bat
start UpdateDataDB.bat
timeout /t 3

View 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

View File

@ -0,0 +1,9 @@
::도커 재실행
@echo off
cd ../VPKI
docker compose down
docker compose up -d
timeout /t 3

View 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