-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
project_copy_folders are always copied to the root #1026
Comments
This sounds like a good improvement. Want to do a PR for it? |
Sure, but I'm wondering: Wouldn't it be better to use the |
I don't remember any great reason. Could just be an oversight so it's worth trying out. |
I'm not an ansible expert. The docs (https://docs.ansible.com/ansible/latest/modules/copy_module.html) say that |
Oh I remember now. In the past the
That warning about So basically, I'm in favour of using whatever makes it the easiest 😄 |
I see. I wasn't aware of that local -> remote scheme. But that makes sense for ansible of course. I think I'll try to get |
Bug report
Replace any
X
with your information.What is the current behavior?
When you add a folder to
project_copy_folders
like- web/app/languages
it is copied to root after the deploy. Makes sense if you look at the code:cp -rp {{ deploy_helper.current_path }}/{{ item.item }} {{ deploy_helper.new_release_path }}
What is the expected or desired behavior?
The folder should be copied to where it was. I guess:
cp -rp {{ deploy_helper.current_path }}/{{ item.item }} {{ deploy_helper.new_release_path }}/{{ item.item }}
would do.
Please provide steps to reproduce, including full log output:
Add a non-root folder to
project_copy_folders
and see where it ends.vendor
works beause it is in root.Please describe your local environment:
Ansible version: 2.7.1
OS: Linux Mint 17
Vagrant version: 2.2.0
Where did the bug happen? Development or remote servers?
Remote (after deploy)
Is there a related Discourse thread or were any utilized (please link them)?
Just posted it here:
https://discourse.roots.io/t/adding-wp-language-files-on-deploy/9212/26
The text was updated successfully, but these errors were encountered: