Skip to main content

Deleting files in public_html via .cpanel.yml before deploying from repo

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! I know you've already specified the path in a previous command, but seeing a wildcard with the "rm" command still scares me a bit. It would be best to use full paths instead of the "cd ../../" and for the rm as well - can you try that and see if that works?
    0
  • Bart Kipping
    Thanks for your reply @cPRex. However, i was not aware of the existence of te rsync command. This one command with its --delete and --exclude flags was all i need.
    0
  • cPRex Jurassic Moderator
    I'm glad you were able to find a fix for that!
    0

Please sign in to leave a comment.