Update .gitea/workflows/deploy.yaml
Remote Build and Deploy / deploy (push) Successful in 23s

This commit is contained in:
remco committed 2026-07-11 22:09:17 +02:00
1 parent 0225d689d9
commit 6299d4338f
1 file changed
+13 -11
+13 -11
View File
@@ -11,28 +11,30 @@ jobs:
- name: Deploying via SSH connection to VPS Host - name: Deploying via SSH connection to VPS Host
uses: appleboy/[email protected] uses: appleboy/[email protected]
with: with:
host: "172.20.2.1" # The default bridge gateway IP pointing back to your VPS host host: "172.20.2.1"
username: "root" # Replace with your actual VPS SSH username if not running as root username: "root"
key: ${{ secrets.SSH_PRIVATE_KEY }} key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22 port: 22
script: | script: |
echo "--- Starting EPIC WEB CONTROL Deployment ---" echo "--- Starting EPIC WEB CONTROL Deployment ---"
# 1. Navigate to your project directory on the bare metal VPS # 1. Navigate to your project directory on the VPS
cd /var/www/atom-nexst/ cd /var/www/atom-nexst/
# [OPTIONEEL] Verwijder of verplaats hier lokale bestanden die NIET in Git staan en in de weg zitten
# rm -rf map-naam/
# rm -f bestand.txt
# 2. Synchronize the application files via Git # 2. Synchronize the application files via Git
git fetch --all git fetch --all
git reset --hard origin/main git reset --hard origin/main
# [OPTIONEEL] Verwijder of verplaats hier bestanden die zojuist uit Git zijn binnengehaald, vòòr de build # --- CLEAN-UP STEP (After git reset, before build) ---
# rm -rf specifieke-map-uit-git/ echo "--- Moving or removing specific items ---"
# mv bestand-uit-git.json /tmp/
# Example: Remove a directory completely
# rm -rf /var/www/atom-nexst/directory-name
# Example: Move a file to a safe location outside the webroot
# mkdir -p /var/www/atom-storage-temp
# mv /var/www/atom-nexst/config-file.json /var/www/atom-storage-temp/
# 3. Run database migrations natively # 3. Run database migrations natively
echo "--- Running Database Migrations ---" echo "--- Running Database Migrations ---"
pnpm db:migrate pnpm db:migrate