Changes

Jump to: navigation, search

Websites/Mozilla.org/Static-Media-Improvements

2,097 bytes added, 17:08, 3 February 2015
Initial port of page from google doc.
== Bedrock Static Media Improvements ==

# <strike>Move to Django 1.6</strike>
# Move media to use staticfiles ([https://github.com/mozilla/bedrock/pull/2672 PR #2672])
## move from [https://github.com/jsocol/jingo-minify/ jingo-minify] to [http://django-pipeline.readthedocs.org/ django-pipeline]
# Clean up deployment
# Move to Python 2.7 ([https://bugzil.la/1118786 Bug 1118786]) (Full process from IT etherpad)
## install [https://github.com/erikrose/peep peep]
## peepify requirements files for compiled dependencies (possibly using [https://github.com/peterbe/peepin peepin])
## <strike>alter code to use proper python ([https://bugzil.la/1118786 Bug 1118786], [https://github.com/mozilla/bedrock/pull/2629/ PR #2629])</strike>
### <strike>Adjust https://github.com/mozilla/bedrock/tree/master/bin/update scripts to call proper python</strike>
###* <strike>See https://github.com/mozilla/fjord/commit/6f4eb86f15f1fc31fc892e421adb28e015ce6474 for example</strike>
### <strike>Adjust https://github.com/mozilla/bedrock/tree/master/etc/cron.d to call proper python</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>
## update Travis CI to test against 2.7
# Move from Apache to [http://whitenoise.evans.io/ Whitenoise] for serving static media
## 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]).
# Move deployment fully to peep and remove vendor submodules
## use virtualenv built for step 2
## use [https://github.com/dean/peepify peepify] to update requirements files
# Upgrade Django to latest (1.7 at present)
# Move to a hybrid [http://gulpjs.com/ Gulp] + Django media management system (CSS, JS, Images, etc.)
#* see https://lincolnloop.com/blog/integrating-front-end-tools-your-django-project/
# Add JS tests to CI
Confirm
94
edits

Navigation menu