fix(swagger): 修正 VPS 無法顯示 Swagger UI 的問題 #53

Merged
a620906209 merged 1 commits from feat/swagger-coverage-gaps into master 2026-06-23 07:27:33 +00:00
3 changed files with 13 additions and 2 deletions
Showing only changes of commit b218fa0964 - Show all commits
+7 -1
View File
@@ -77,4 +77,10 @@ REVERB_SCHEME=http
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}" VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}" VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}" VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}" VITE_REVERB_SCHEME="${REVERB_SCHEME}"
# Swagger UI — API 伺服器 Base URL(結尾不加斜線)
# 本地:http://localhost:8080/api
# 生產:https://api.hank-space.com/api
L5_SWAGGER_CONST_HOST=http://localhost:8080/api
L5_SWAGGER_GENERATE_ALWAYS=false
+5
View File
@@ -33,6 +33,11 @@ jobs:
docker compose exec -T app php artisan view:cache docker compose exec -T app php artisan view:cache
docker compose exec -T app php artisan event:cache docker compose exec -T app php artisan event:cache
- name: Generate Swagger docs
run: |
cd /root/myproject/CFDivePlatform
docker compose exec -T app php artisan l5-swagger:generate
- name: Restart queue worker - name: Restart queue worker
run: | run: |
cd /root/myproject/CFDivePlatform cd /root/myproject/CFDivePlatform
+1 -1
View File
@@ -12,7 +12,7 @@ use OpenApi\Annotations as OA;
* ) * )
* *
* @OA\Server( * @OA\Server(
* url="/api", * url=L5_SWAGGER_CONST_HOST,
* description="API 伺服器" * description="API 伺服器"
* ) * )
* *