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

This commit is contained in:
remco committed 2026-07-12 11:29:14 +02:00
1 parent f719e2cbb7
commit 16dced5051
1 file changed
+7 -7
+7 -7
View File
@@ -21,15 +21,15 @@ jobs:
# 2. Navigate to your website directory # 2. Navigate to your website directory
cd /var/www/atom-nexst/ cd /var/www/atom-nexst/
# Fix ownership to ensure www-data owns the files # Point Git directly to the local Gitea folder path
sudo chown -R www-data:www-data .git/ git remote set-url origin /docker/gitea/gitea/git/repositories/remco/epicnext-cms.git/
# Force Git to read directly from the local Gitea repository directory # 3. Fetch and update code as root to bypass folder permission blocks
sudo -u www-data git remote set-url origin /docker/gitea/gitea/git/repositories/remco/epicnext-cms.git/ git fetch origin --prune
git reset --hard origin/main
# 3. Fetch and update code using the local web user # Fix ownership: Ensure www-data owns the files for the web server
sudo -u www-data git fetch origin --prune sudo chown -R www-data:www-data /var/www/atom-nexst/
sudo -u www-data git reset --hard origin/main
# 4. Install dependencies, run migrations, and build the application # 4. Install dependencies, run migrations, and build the application
/usr/local/bin/pnpm install --frozen-lockfile /usr/local/bin/pnpm install --frozen-lockfile