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 to set RAILS_GROUPS for assets:precompile #135

Merged
merged 1 commit into from
Mar 4, 2017
Merged

Allow to set RAILS_GROUPS for assets:precompile #135

merged 1 commit into from
Mar 4, 2017

Conversation

printercu
Copy link
Contributor

updated #134
Sorry, opened #134 from other user.

README.md Outdated
@@ -9,6 +9,7 @@ Some rails specific options.

```ruby
set :rails_env, 'staging' # If the environment differs from the stage name
set :rails_assets_groups, nil # RAILS_GROUPS env value for the assets:precompile task
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should name just rails_groups? May be confusing to have rails_assets_groups setting that corresponds to RAILS_GROUPS ENV variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. I think it could be confusing, so someone can think this envvar is applied to ALL tasks. The main point is to add this RAILS_ENV only for assets:precompile.

If you think it's ok, i'll change. I don't think a lot of people use RAILS_GROUPS.

@mattbrictson
Copy link
Member

Is this PR still needed/desirable?

@printercu
Copy link
Contributor Author

I would use it, if merged. For now I define custom tasks.

@mattbrictson
Copy link
Member

mattbrictson commented Mar 4, 2017

Thanks for writing back. I think this is worth merging.

Can you rebase and fix the conflicts? ~~~If you could also add some documentation of this feature to the README, that would be great.~~~ I see you've already added the docs. Never mind!

@printercu
Copy link
Contributor Author

Rebased.

@mattbrictson
Copy link
Member

Looks good. Thanks! ✨

@mattbrictson mattbrictson merged commit f4befc4 into capistrano:master Mar 4, 2017
@printercu printercu deleted the patch-1 branch March 5, 2017 09:46
@rustygeldmacher rustygeldmacher mentioned this pull request Jun 9, 2017
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