Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

"Copy asset files when not changed" creates recursive directory structure #16

Open
kjleitz opened this issue Oct 15, 2018 · 3 comments
Open
Labels

Comments

@kjleitz
Copy link

kjleitz commented Oct 15, 2018

- name: copy asset files when not changed

- name: copy asset files when not changed
  shell: "cp -R {{ current_path }}/public/assets {{ build_path }}/public/assets"
  when: compile_assets and assets is defined and not assets.changed

For example, given a current_path of some_current_dir/ and a build_path of some_build_dir/, this seems to create a some_build_dir/public/assets/assets (notice that it's nested) linking to some_current_dir/public/assets.

I may be misunderstanding, but isn't this action supposed to link

some_build_dir/public/assets

to

some_current_dir/public/assets

...?

Not to link

some_build_dir/public/assets/assets

to

some_current_dir/public/assets

...?

Thank you for this repo, by the way, it's a huge help!

@kjleitz
Copy link
Author

kjleitz commented Oct 16, 2018

@nicolai86 while technically this is a question, depending on the answer I think it's more of a bug report—I noticed this behavior in a production app which implemented your pattern a while ago! :)

@nicolai86
Copy link
Owner

@kjleitz Yup; I think this should work; I’ll need to dig a little for an old rails app which is deployed via rails - I’ll probably get back to you on the weekend.

I hope this is not blocking you?

@kjleitz
Copy link
Author

kjleitz commented Oct 16, 2018

@nicolai86 thank you for asking, but no, not blocking! 😄

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

No branches or pull requests

2 participants