-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error appears while assets are copied #12
Comments
I've never seen this problem before. Do you have an idea why this is happening in your specific case? |
I think in my case it happens because capistrano/rails creates a symlink release/timestamp/public/assets -> shared/public/assets, so previous release and current release refers to the same assets folder. I think that we don't need to execute a line which invoke assets copying, because we have symlink to the right assets and we just need to invoke copying if we don't have any symlink (but we have the symlink because this gem depends to capistrano/rails which creates the symlink) off topic noteI think it would be better to add capistrano/rails as dependency to your gem via http://guides.rubygems.org/specification-reference/#add_runtime_dependency and create some rake task like |
Strangely enough, I have never experienced this problem, and I'm also using On 28 October 2015 at 09:15, SmyzerT [email protected] wrote:
|
I confirm the same problem Problem line is here: execute(:cp, '-r', latest_release_path.join('public', fetch(:assets_prefix)), release_path.join('public', fetch(:assets_prefix))) because both paths are symlinks to shared/public/assets |
this https://github.com/capistrano-plugins/capistrano-faster-assets/blob/master/lib/capistrano/tasks/faster_assets.rake#L45 triggers error, because capistrano/rails creates symlink to public/assets and the task creates endless loop copy
The text was updated successfully, but these errors were encountered: