fix: Correct deployment directory structure in deploy-prod.yml
Merge to Main - Full Pipeline / Stage 1: Fast Gates (push) Failing after 3s
Merge to Main - Full Pipeline / Stage 2: Critical Gates (push) Has been skipped
Merge to Main - Full Pipeline / Stage 3: Integration Tests (push) Has been skipped
Merge to Main - Full Pipeline / Stage 4: Build and Package (push) Has been skipped
Merge to Main - Full Pipeline / Stage 5: Deploy to Production (push) Has been skipped
Merge to Main - Full Pipeline / Pipeline Summary (push) Successful in 1s
Merge to Main - Full Pipeline / Stage 1: Fast Gates (push) Failing after 3s
Merge to Main - Full Pipeline / Stage 2: Critical Gates (push) Has been skipped
Merge to Main - Full Pipeline / Stage 3: Integration Tests (push) Has been skipped
Merge to Main - Full Pipeline / Stage 4: Build and Package (push) Has been skipped
Merge to Main - Full Pipeline / Stage 5: Deploy to Production (push) Has been skipped
Merge to Main - Full Pipeline / Pipeline Summary (push) Successful in 1s
- Add deployment structure normalization step after tar extraction - If net10.0 subdirectory exists, move its contents to deployment root - Create corrected systemd service file (quantengine.service) - Fixes issue where .NET DLLs were incorrectly placed in net10.0 subdirectory This ensures compatibility with existing ExecStart path in systemd service: ExecStart=/usr/bin/dotnet /path/to/QuantEngine.Web.dll Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -215,6 +215,13 @@ jobs:
|
||||
tar -xzf quantengine.tar.gz -C "${TARGET_DIR}"
|
||||
rm -f quantengine.tar.gz
|
||||
|
||||
# 배포 구조 정규화 (net10.0 디렉토리가 있으면 최상위로 이동)
|
||||
if [ -d "${TARGET_DIR}/net10.0" ]; then
|
||||
echo "Restructuring deployment (moving net10.0 contents to root)..."
|
||||
mv "${TARGET_DIR}/net10.0"/* "${TARGET_DIR}/"
|
||||
rmdir "${TARGET_DIR}/net10.0" || true
|
||||
fi
|
||||
|
||||
# 환경 파일 설치
|
||||
echo "⚙️ Installing environment configuration..."
|
||||
mkdir -p /home/kjh2064/.config
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Quant Engine Web Application (.NET 10)
|
||||
After=network.target
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=3
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=kjh2064
|
||||
WorkingDirectory=/home/kjh2064/quantengine_active
|
||||
ExecStart=/usr/bin/dotnet /home/kjh2064/quantengine_active/QuantEngine.Web.dll
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
SyslogIdentifier=quantengine
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
Environment="ASPNETCORE_ENVIRONMENT=Production"
|
||||
Environment="ASPNETCORE_URLS=http://127.0.0.1:5000"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user