-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
assets: add theme path to coffeescript's processing; rakefile: fix feature/env settings #2387
Conversation
@nedbat - if you have the time to lay your eyes on it, I wouldn't mind that... |
@jbau would you look at this also? |
@yarko I can take a look -- we've done basically no CMS theming work, FYI. Our studio is basically unthemed. |
I see--so now for dev boxes that aren't using vagrant, we'd have |
@jbau - First, I don't have experience w/ production boxes (I'm trying to walk the path, one click at a time, from vagrant-devstack to vagrant-fullstack to prod-deploy). Yes, my intention is to unify (or smooth the path) between dev and prod. First step is just to get the basics working (i.e. if ansible extra vars are set, have them behave / be passed on in a normally expected way). Right now, this is simply trying to relieve that first roadblock. I expect that the Does production just have |
Actually it's quite the opposite. On my dev machine, I only had If you're going to do any sort of precedence in importing, I'd put the |
@jbau - thanks for your input / insights. What I definitely want to avoid
which just seems silly. For handcrafted On Sun, Feb 2, 2014 at 5:00 PM, Jason Bau notifications@github.com wrote:
|
this also fixes https://github.com/edx/configuration/issues/744 |
On current master, I noticed
@jarv - do I remember you putting in something recently to set default If so, note: rake needs more, other settings in |
@ovnicraft, @jbau - This is good, and I have used a lot, but it's partial. There are 3 more (4 in total) code PRs, and a documentation PR to go with this one - once I finish up the code on the last of the code ones (last one is close, the rest pretty much done), I will generate the those PRs, and start the documentation one - then open for comment and use. It should go through that first. Look for those in the next few days. |
rakefile: fix so assets/coffee use env vars & feature settings
… same startup.py as lms.
rebased. |
Now that Paver is finally, truly merged, is this pull request still relevant? Or should it be closed? |
Closing this PR. As |
This is another step towards enabling product development off of Open edX:
rakefile setup ENV_TOKENS (supposed to b django settings & feature flags) based on SERVICE_VARIANT, but the *.env.json files which are commonly set in the baseline are cms.env.json and lms.env.json - yet the feature settings weren't getting passed on to assets processing.
This corrects the base rakefile:
The standard installation creates both lms.env.json and cms.env.json in /edx/app/edxapp - copies of the respective django environment settings.
I didn't expect both to be present (for example:
rake devstack[lms]
orrake cms:gather_assets:devstack
seem to preclude both lms and [studio, cms] being present on the command line. If there were such an instance, lms would win.With this change, it is possible to effect lms theming and "have it just work".
There is a remaining issue with cms theming, where manage.py cms preprocess_assets seems to edit and overwrite the theme includ settings configured by other tasks in the various standard *.scss files. That will be addressed in another pull request.
This pull also enables automatic "working" for an associated pull [TBD] for configuration, where vagrant/base bringups are setup for specific ("nailed") repositories & versions (branches), so this is part of enabling that also.