Update .gitea/workflows/deploy.yaml
Local Build and Deploy / deploy (push) Failing after 14s

This commit is contained in:
Simo committed 2026-07-12 14:09:57 +02:00
1 parent 50496b20be
commit ec7257f4ea
1 file changed
+9 -9
+9 -9
View File
@@ -28,21 +28,21 @@ jobs:
# REMOVE OLD CACHE AND BUILDS
rm -rf .next .output dist
# 4. Configure pnpm to automatically approve build scripts
pnpm config set trusted-dependencies @parcel/watcher,@swc/core,sharp
# 4. Install dependencies and allow build scripts for sharp, swc, and parcel
pnpm install --frozen-lockfile --only-built-dependencies=@parcel/watcher,@swc/core,sharp
# Install dependencies
pnpm install --frozen-lockfile
# Database updates, client generation and build (CORRECT ORDER)
# 5. Sync Prisma with the actual DB structure and generate types
echo "Syncing schema with database..."
pnpm prisma db pull
pnpm prisma generate
pnpm prisma migrate deploy
# 6. Next.js Build
pnpm build
# 5. Fix ownership: Build first, THEN set permissions for the web server
# 7. Fix ownership: Build first, THEN set permissions for the web server
sudo chown -R www-data:www-data /var/www/atom-nexst/
# 6. Hard restart of the Systemd service to clear memory cache
# 8. Hard restart of the Systemd service to clear memory cache
echo "Hard resetting systemd service..."
sudo systemctl stop atom-nexst.service
sudo systemctl start atom-nexst.service