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

Allow early overriding of assets_* parameters #73

Merged
merged 1 commit into from
May 26, 2014
Merged

Allow early overriding of assets_* parameters #73

merged 1 commit into from
May 26, 2014

Conversation

Confusion
Copy link
Contributor

Because the load:defaults task didn't check whether assets_roles or assets_prefix had already been set, the default settings could only be overridden from deploy.rb or a_stage.rb, but not from Capfile. However, styles differ and keeping the relevant settings close to the appropriate require is possible with this change, while it has no downsides afaik.

Because the `load:defaults` task didn't check whether `assets_roles` or `assets_prefix` had already been set, the default settings could only be overridden from `deploy.rb` or `a_stage.rb`, but not from `Capfile`. However, styles differ and keeping the relevant settings close to the appropriate `require` is possible with this change, while it has no downsides afaik.
@rosswilson
Copy link

I've come across this issue today as well. I'm using a different config.assets.prefix value and while assets_prefix is set to match, the directory doesn't get added to the linked_dirs setting.

kirs added a commit that referenced this pull request May 26, 2014
Allow early overriding of assets_* parameters
@kirs kirs merged commit f32f973 into capistrano:master May 26, 2014
@kirs
Copy link
Member

kirs commented May 26, 2014

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants