Websites/Mozilla.org/Static-Media-Improvements: Difference between revisions
< Websites | Mozilla.org
Jump to navigation
Jump to search
Pmclanahan (talk | contribs) m (Add link to IT etherpad.) |
Pmclanahan (talk | contribs) (Strike through finished things \o/) |
||
| Line 2: | Line 2: | ||
# <strike>Move to Django 1.6</strike> | # <strike>Move to Django 1.6</strike> | ||
# Move media to use staticfiles ([https://github.com/mozilla/bedrock/pull/2672 PR #2672]) | # <strike>Move media to use staticfiles ([https://github.com/mozilla/bedrock/pull/2672 PR #2672])</strike> | ||
## move from [https://github.com/jsocol/jingo-minify/ jingo-minify] to [http://django-pipeline.readthedocs.org/ django-pipeline] | ## <strike>move from [https://github.com/jsocol/jingo-minify/ jingo-minify] to [http://django-pipeline.readthedocs.org/ django-pipeline]</strike> | ||
# Clean up deployment | # <strike>Clean up deployment</strike> | ||
# Move to Python 2.7 ([https://bugzil.la/1118786 Bug 1118786]) ([https://infra.etherpad.mozilla.org/bedrock-python27-migration Full process from IT etherpad]) | # <strike>Move to Python 2.7 ([https://bugzil.la/1118786 Bug 1118786]) ([https://infra.etherpad.mozilla.org/bedrock-python27-migration Full process from IT etherpad])</strike> | ||
## install [https://github.com/erikrose/peep peep] | ## install [https://github.com/erikrose/peep peep] | ||
## peepify requirements files for compiled dependencies (possibly using [https://github.com/peterbe/peepin peepin]) | ## peepify requirements files for compiled dependencies (possibly using [https://github.com/peterbe/peepin peepin]) | ||
| Line 14: | Line 14: | ||
###* <strike>Ideally via PYTHON_PATH provided by Chief... would require this to be some form of template.</strike> | ###* <strike>Ideally via PYTHON_PATH provided by Chief... would require this to be some form of template.</strike> | ||
###* <strike>Alternatively, a simple duplicate hard-coding of what's in commander_settings.py</strike> | ###* <strike>Alternatively, a simple duplicate hard-coding of what's in commander_settings.py</strike> | ||
## update Travis CI to test against 2.7 | ## <strike>update Travis CI to test against 2.7</strike> | ||
# Move from Apache to [http://whitenoise.evans.io/ Whitenoise] for serving static media | # <strike>Move from Apache to [http://whitenoise.evans.io/ Whitenoise] for serving static media</strike> | ||
## Move non-template files served at site root (humans.txt, contribute.json, etc.) to a directory and have whitenoise serve it at the root of the site (via [http://whitenoise.evans.io/en/latest/django.html#WHITENOISE_ROOT WHITENOISE_ROOT setting]). | ## <strike>Move non-template files served at site root (humans.txt, contribute.json, etc.) to a directory and have whitenoise serve it at the root of the site (via [http://whitenoise.evans.io/en/latest/django.html#WHITENOISE_ROOT WHITENOISE_ROOT setting]).</strike> | ||
# Move deployment fully to peep and remove vendor submodules | # Move deployment fully to peep and remove vendor submodules | ||
## use virtualenv built for step 2 | ## use virtualenv built for step 2 | ||
Revision as of 14:29, 12 February 2015
Bedrock Static Media Improvements
Move to Django 1.6Move media to use staticfiles (PR #2672)move from jingo-minify to django-pipeline
Clean up deploymentMove to Python 2.7 (Bug 1118786) (Full process from IT etherpad)- install peep
- peepify requirements files for compiled dependencies (possibly using peepin)
alter code to use proper python (Bug 1118786, PR #2629)Adjust https://github.com/mozilla/bedrock/tree/master/bin/update scripts to call proper pythonAdjust https://github.com/mozilla/bedrock/tree/master/etc/cron.d to call proper pythonIdeally via PYTHON_PATH provided by Chief... would require this to be some form of template.Alternatively, a simple duplicate hard-coding of what's in commander_settings.py
update Travis CI to test against 2.7
Move from Apache to Whitenoise for serving static mediaMove non-template files served at site root (humans.txt, contribute.json, etc.) to a directory and have whitenoise serve it at the root of the site (via WHITENOISE_ROOT setting).
- Move deployment fully to peep and remove vendor submodules
- use virtualenv built for step 2
- use peepify to update requirements files
- Upgrade Django to latest (1.7 at present)
- Move to a hybrid Gulp + Django media management system (CSS, JS, Images, etc.)
- Add JS tests to CI