Operating System & Version
CENTOS 7.8
cPanel & WHM Version
90.0.10

DHarry

Member
Nov 9, 2016
10
1
3
Kansas City, Missouri
cPanel Access Level
Root Administrator
Hi,

I'm new to working with Git deployment and cPanel and I'm just trying to confirm my overall set up.

I would like to exclude/ignore only 3 or 4 files during the deployment process. The rest of my files will be updated periodically.

Would I be able to set up my cpanel.yml file as such?

Code:
---
deployment:
      tasks:
        - export DEPLOYPATH=/home/username/public_html/
        -/bin/rsync -av --exclude='.git/' --exclude='.gitignore' --exclude='admin/config.php' mycomputer/locahost/path $DEPLOYPATH