Skip to main content

Include directories for deployment in cpanel.yml?

Comments

8 comments

  • cPanelAdamF
    Not sure I understand yet. Do you mean that you only have files (no folders) checked into your git repository...or do you mean that the cp commands in your cpanel.yml only copy files one by one?
    0
  • afatah
    Thanks for your reply.. Sorry, if I was not clear. I would like to to push the css, js, and img folders to the $DEPLOYPATH. For example, my repo tree is as follows: [QUOTE] css/... js/... img/... index.html favicon.ico
    0
  • Chris Kerrison
    Hi, Do we have a solution to this? I've tried "cp - R" however that still doesn't work. I know I must be missing something silly.
    0
  • Chris Kerrison
    Sorted. Sorry i had a typo further up my yml file. the solution is: - /bin/cp -R * $DEPLOYPATH
    0
  • afatah
    Sorted. Sorry i had a typo further up my yml file. the solution is: - /bin/cp -R * $DEPLOYPATH

    I was struggling to find a solution. Thanks Chris, you are lifesaver!
    0
  • cPanelAdamF
    I bet we can include this in the official documentation in order to help others in similar situations! Thank you, all, for reporting it!
    0
  • cPanelMichael
    @afatah, @Chris Kerrison, we published an update to the Deployment section of our
    0
  • astute
    Hi, can anyone tell me where exactly to put .cpanel.yml file? in my case its not deploying automatically .. please help
    0

Please sign in to leave a comment.