Websites/Mozilla.org/Static-Media-Improvements: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Rearranging tasks.)
mNo edit summary
Line 15: Line 15:
# <strike>Move from Apache to [http://whitenoise.evans.io/ Whitenoise] for serving static media</strike>
# <strike>Move from Apache to [http://whitenoise.evans.io/ Whitenoise] for serving static media</strike>
## <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>
## <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>
# Add JS tests to CI
# Move deployment fully to peep and remove vendor submodules
# Move deployment fully to peep and remove vendor submodules
## install [https://github.com/erikrose/peep peep]
## install [https://github.com/erikrose/peep peep]
Line 24: Line 23:
# Move to a hybrid [http://gulpjs.com/ Gulp] + Django media management system (CSS, JS, Images, etc.)
# 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/
#* see https://lincolnloop.com/blog/integrating-front-end-tools-your-django-project/
# Add JS tests to CI

Revision as of 14:37, 18 March 2015

Bedrock Static Media Improvements

  1. Move to Django 1.6
  2. Move media to use staticfiles (PR #2672)
    1. move from jingo-minify to django-pipeline
  3. Clean up deployment
  4. Move to Python 2.7 (Bug 1118786) (Full process from IT etherpad)
    1. alter code to use proper python (Bug 1118786, PR #2629)
      1. Adjust https://github.com/mozilla/bedrock/tree/master/bin/update scripts to call proper python
      2. Adjust https://github.com/mozilla/bedrock/tree/master/etc/cron.d to call proper python
        • Ideally 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
    2. update Travis CI to test against 2.7
  5. Move from Apache to Whitenoise for serving static media
    1. 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 WHITENOISE_ROOT setting).
  6. Move deployment fully to peep and remove vendor submodules
    1. install peep
    2. peepify requirements files for compiled dependencies (possibly using peepin)
    3. use virtualenv built for step 2
    4. use peepify to update requirements files
  7. Upgrade Django to latest (1.7 at present)
  8. Move to a hybrid Gulp + Django media management system (CSS, JS, Images, etc.)
  9. Add JS tests to CI