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

Fixes #7527 - don't require less in production unless from rake #4673

Merged
merged 1 commit into from Sep 19, 2014

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Sep 18, 2014

No description provided.

@lzap
Copy link
Contributor

lzap commented Sep 19, 2014

Cool, I see tests failing.

@iNecas
Copy link
Member Author

iNecas commented Sep 19, 2014

@jlsherrill I've updated the condition on determining if to add the paths to the config.less based on the presence of the Less::Rails so that there is one place to decide if the less-rails should be loaded or not

@iNecas
Copy link
Member Author

iNecas commented Sep 19, 2014

also, the tests should be green after jenkins finishes

@jlsherrill
Copy link
Member

tested the build on a nightly and worked great. ACK from me, any thoughts @ehelms ?

@ehelms
Copy link
Member

ehelms commented Sep 19, 2014

It feels ugly, and prone to potentially break on us again. I'm OK with this fix, but from those that have investigated it heavily, is there anything we can do to make a change in https://github.com/cowboyd/less.rb or work with them to avoid having to do this in the future?

@iNecas
Copy link
Member Author

iNecas commented Sep 19, 2014

Personally, I would like to avoid this kind of deps in production, even when the particular execmem error wasn't there: the assets (any any other type of) compilation should be always extracted outside of production server runtime

@ehelms
Copy link
Member

ehelms commented Sep 19, 2014

@iNecas I agree, I think by default Rails compiles assets in the production environment due to the settings around compilation :/ I wonder if we could introduce another environment? (ACK for this PR)

@iNecas
Copy link
Member Author

iNecas commented Sep 19, 2014

----- Original Message -----

@iNecas I agree, I think by default Rails compiles assets in the production
environment due to the settings around compilation :/ I wonder if we could
introduce another environment? (ACK for this PR)

By "production runtime" environment, I mean the httpd/foreman-proxy
service, that are long-running processes. The production environment
in rake is not that big problem: also the selinux is not being applied
in that case.


Reply to this email directly or view it on GitHub:
#4673 (comment)

iNecas added a commit that referenced this pull request Sep 19, 2014
Fixes #7527 - don't require less in production unless from rake
@iNecas iNecas merged commit 0075097 into Katello:master Sep 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants