Deploy to Production (witstore.wende.it) / deploy (push) Failing after 2s
Uses same PHP path, Plesk composer, nodenv npm, GIT_TOKEN auth. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: Deploy to Production (witstore.wende.it)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- DEV
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Deploy via SSH
|
|
uses: appleboy/ssh-action@v1.0.3
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SSH_USER }}
|
|
key: ${{ secrets.SSH_KEY }}
|
|
port: ${{ secrets.SSH_PORT }}
|
|
script: |
|
|
cd /var/www/vhosts/witstore.wende.it/httpdocs
|
|
git remote set-url origin https://marco:${{ secrets.GIT_TOKEN }}@git.wende.it/marco/WitShop.git
|
|
git fetch origin DEV
|
|
git reset --hard origin/DEV
|
|
/opt/plesk/php/8.4/bin/php -d open_basedir="" /usr/local/psa/var/modules/composer/composer.phar install --no-dev --optimize-autoloader
|
|
/opt/plesk/php/8.4/bin/php -d open_basedir="" artisan migrate --force
|
|
/opt/plesk/php/8.4/bin/php -d open_basedir="" artisan config:cache
|
|
/opt/plesk/php/8.4/bin/php -d open_basedir="" artisan route:cache
|
|
/opt/plesk/php/8.4/bin/php -d open_basedir="" artisan view:cache
|
|
export PATH="$HOME/.nodenv/versions/24/bin:$HOME/.nodenv/shims:$HOME/.nodenv/bin:$PATH"
|
|
npm ci
|
|
npm run build
|
|
echo "Deployment abgeschlossen: $(date)"
|