Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpanel-yml not working #4

Open
Vikram0811 opened this issue Feb 25, 2021 · 2 comments
Open

Cpanel-yml not working #4

Vikram0811 opened this issue Feb 25, 2021 · 2 comments

Comments

@Vikram0811
Copy link

Vikram0811 commented Feb 25, 2021

I have been trying to deploy individual files/folder changes to root folder destination, however it seems the provided code does not work. Below is the yml I am trying in Magento 2 to check if file level changes are updated on public_html but it seems it is not working and does nothing.

---
deployment:
      tasks:
        - export DEPLOYPATH=/home/username/public_html/app/code/NameSpace/ModuleName
        - /bin cp /app/code/NameSpace/ModuleName/registration.php $DEPLOYPATH

The code only works if you copy entire root to destination which is not practical in real time as no one would want to replace files/folders that are not committed.

Thanks.

@Vikram0811
Copy link
Author

@FrancoisGeyser any resolution/update on this issue?

@FrancoisGeyser
Copy link
Owner

@Vikram0811 I am unsure of how to help you. The script functions as intended as long as you have followed the readme and configured the file correctly.

It is a script that CPanel runs for you should you wish to use CPanel to copy your repo as opposed to using ssh or a webhook etc.

If you only want to copy individual files simply modify the cp command to only include only those files. The example cp commands in the yml file are just some that I found to be common, but any form of the cp command could be used. In reality it is simply a copy command, so no it cannot differentiate between files that have been updated in the last commit and files than have not.

Please look through the readme and the example file again and I also suggest looking at the CPanel documentation perhaps they have a use case similar to your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants