# ITN-HUB local run script (smoke test) # The Mattermost token is NOT in this file - it is read from the xlsm at runtime. # This file is gitignored (contains DB password). # NOTE: file must be saved as UTF-8 with BOM for PowerShell 5.1 to read the Korean path. $ErrorActionPreference = 'Stop' $env:JAVA_HOME = 'D:\Development\app\JDK\jdk-21.0.5' $env:PATH = "$env:JAVA_HOME\bin;$env:PATH" $env:PYTHONIOENCODING = 'utf-8' $xlsm = 'D:\아이티앤\신유형사업\★ 2026 신유형 사업 신청기관 리스트_47개_260719.xlsm' if (-not (Test-Path -LiteralPath $xlsm)) { throw "xlsm not found: $xlsm" } $token = & python -c @" import sys, openpyxl wb = openpyxl.load_workbook(sys.argv[1], data_only=True, read_only=True) print(wb['Mattermost_설정']['B3'].value.strip()) "@ $xlsm if (-not $token) { throw 'failed to read token from xlsm' } $env:DB_URL = 'jdbc:postgresql://192.168.0.60:5432/itnhub' $env:DB_USERNAME = 'itnhub' $env:DB_PASSWORD = 'itntest123' $env:MATTERMOST_URL = 'https://hub.iten.co.kr' $env:MATTERMOST_TOKEN = $token $env:MATTERMOST_TEAM_ID = '4oc6ygj5ri819rfyab938i64pw' $env:APP_ADMIN_USERNAME = 'admin' $env:APP_ADMIN_PASSWORD = 'itntest123' Set-Location 'D:\Development\InteliJ_repository\itnhub' Write-Host 'Starting ITN-HUB with the REAL Mattermost token. Port 8877. Stop: Ctrl+C' java -jar target\itnhub-0.1.0.jar