HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux web-crawler-1 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: workverse-backend (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /mnt/HC_Volume_102964888/html/churchtv/.gitlab-ci.yml
stages:
  - deploy_staging

variables:
  DEPLOY_PATH: "/mnt/HC_Volume_102964888/html/churchtv"

deploy_staging:
  stage: deploy_staging
  only:
    - staging
  script:
    - echo "Deploying WordPress to production server..."
    - ssh $SSH_USER@$SSH_SERVER "
        cd $DEPLOY_PATH &&
        git fetch &&
        git reset --hard origin/staging &&
        chown -R workverse-backend:www-data $DEPLOY_PATH &&
        find $DEPLOY_PATH -type f -exec chmod 664 {} \; &&
        find $DEPLOY_PATH -type d -exec chmod 775 {} \; &&
        echo 'Deployment complete, permissions set!'
      "