fix first production issues
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ After pushing, the pipeline will run automatically. The following steps are requ
|
||||
| `SSH_PORT` | `22` | SSH port for the deployment server |
|
||||
| `SSH_TARGET_DIR` | — | Absolute path on the server where `dist/` contents should be placed |
|
||||
| `PRODUCTION_URL` | — | Public URL of the production site |
|
||||
| `VITE_API_ORIGIN` | — | (Optional) API base URL passed at build time |
|
||||
| `VITE_API_URL` | — | (Optional) API base URL passed at build time |
|
||||
|
||||
## 3. Allow Gitea Actions
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
env:
|
||||
VITE_API_ORIGIN: ${{ vars.VITE_API_ORIGIN || '' }}
|
||||
VITE_API_URL: ${{ vars.VITE_API_URL || '' }}
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# DEPLOY (manual): to shared hosting via SSH
|
||||
@@ -117,7 +117,7 @@ jobs:
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
env:
|
||||
VITE_API_ORIGIN: ${{ vars.VITE_API_ORIGIN || '' }}
|
||||
VITE_API_URL: ${{ vars.VITE_API_URL || '' }}
|
||||
|
||||
- name: Install SSH and rsync
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user