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

From MozillaWiki
Jump to navigation Jump to search
(Strike through finished things \o/)
(Done with peepification!)
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
# <strike>Clean up deployment</strike>
# <strike>Clean up deployment</strike>
# <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>
# <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]
## 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>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>Adjust https://github.com/mozilla/bedrock/tree/master/bin/update scripts to call proper python</strike>
Line 17: 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>
# Move deployment fully to peep and remove vendor submodules
# <strike>Move deployment fully to peep and remove vendor submodules ([https://bugzilla.mozilla.org/show_bug.cgi?id=1144669 Bug 1144669])</strike>
## use virtualenv built for step 2
## <strike>install [https://github.com/erikrose/peep peep]</strike>
## use [https://github.com/dean/peepify peepify] to update requirements files
## <strike>peepify requirements files for compiled dependencies (possibly using [https://github.com/peterbe/peepin peepin])</strike>
# Upgrade Django to latest (1.7 at present)
## <strike>use virtualenv built for step 4</strike>
# Move to a hybrid [http://gulpjs.com/ Gulp] + Django media management system (CSS, JS, Images, etc.)
## <strike>use [https://github.com/dean/peepify peepify] to update requirements files</strike>
# Remove funfactory ([https://bugzilla.mozilla.org/show_bug.cgi?id=1155810 Bug 1155810])
# Upgrade Django to 1.8
# Move to a hybrid [http://gulpjs.com/ Gulp] (or keep [http://gruntjs.com/ Grunt]) + 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/
#* Manage node.js dependencies with [https://github.com/mozilla/npm-lockdown npm-lockdown].
# Add JS tests to CI
# Add JS tests to CI

Latest revision as of 16:19, 20 April 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 (Bug 1144669)
    1. install peep
    2. peepify requirements files for compiled dependencies (possibly using peepin)
    3. use virtualenv built for step 4
    4. use peepify to update requirements files
  7. Remove funfactory (Bug 1155810)
  8. Upgrade Django to 1.8
  9. Move to a hybrid Gulp (or keep Grunt) + Django media management system (CSS, JS, Images, etc.)
  10. Add JS tests to CI