Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[Fix bug 917727][Fix bug 916011] Migrate remo to django static files
* Fix hardcoded dependencies that referenced MEDIA_URL
* Change dir structure to <app-name>/statics/<app-name>/
* Use {% static %} template tag for static urls
* Server "robots.txt" using a view
* Use single jQuery source in bundles before minification
* Ignore /static folder
* Delete unused files and /media folder
* Remove jingo-minify settings and use django-compressor
* Migrate all jingo-minify css() and js() references
* Add .gitkeep to /media folder for future media use
* Store deployment revision informations to /static
* Add BeautifulSoup to requirements
* Fix update.py not to use compress_assets
  • Loading branch information
johngian committed Oct 15, 2013
1 parent bb41ab3 commit d19f716
Show file tree
Hide file tree
Showing 152 changed files with 343 additions and 731 deletions.
8 changes: 2 additions & 6 deletions .gitignore
Expand Up @@ -9,18 +9,14 @@ docs/_gh-pages
build.py
build
.DS_Store
*-min.css
*-all.css
*-min.js
*-all.js
.noseids
tmp/*
*~
*.mo
.vagrant
.virtualenv
/vendor-local/lib/python/*.egg-info/*
media/static
media/css/remo/app.less.css
media
venv
vagrantconfig_local.yaml
static
14 changes: 7 additions & 7 deletions bin/update/update.py
Expand Up @@ -37,7 +37,6 @@ def update_assets(ctx):
with ctx.lcd(settings.SRC_DIR):
# LANG=en_US.UTF-8 is sometimes necessary for the YUICompressor.
ctx.local('LANG=en_US.UTF8 python ./manage.py collectstatic --noinput')
ctx.local('LANG=en_US.UTF8 python ./manage.py compress_assets')


@task
Expand All @@ -48,6 +47,7 @@ def update_db(ctx):
with ctx.lcd(settings.SRC_DIR):
ctx.local('python ./manage.py migrate')


@task
def update_product_details(ctx):
"""Update the product details
Expand Down Expand Up @@ -81,12 +81,12 @@ def update_celery(ctx):
def update_info(ctx, tag):
"""Write info about the current state to a publicly visible file."""
with ctx.lcd(settings.SRC_DIR):
ctx.local('date > media/revision_info.txt')
ctx.local('git branch >> media/revision_info.txt')
ctx.local('git log -3 >> media/revision_info.txt')
ctx.local('git status >> media/revision_info.txt')
ctx.local('git submodule status >> media/revision_info.txt')
ctx.local('git rev-parse HEAD > media/revision.txt')
ctx.local('date > static/revision_info.txt')
ctx.local('git branch >> static/revision_info.txt')
ctx.local('git log -3 >> static/revision_info.txt')
ctx.local('git status >> static/revision_info.txt')
ctx.local('git submodule status >> static/revision_info.txt')
ctx.local('git rev-parse HEAD > static/revision.txt')

if NEW_RELIC_API_KEY and NEW_RELIC_APP_ID:
print 'Post deploy event to NewRelic'
Expand Down
File renamed without changes.
Empty file removed media/js/.gitignore
Empty file.
4 changes: 0 additions & 4 deletions media/js/libs/jquery-1.7.1.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions media/js/libs/jquery.min.js

This file was deleted.

184 changes: 0 additions & 184 deletions media/js/libs/jquery.quicksearch.js

This file was deleted.

9 changes: 0 additions & 9 deletions media/js/libs/less-1.3.0.min.js

This file was deleted.

21 changes: 0 additions & 21 deletions media/leaflet-locatecontrol/LICENSE

This file was deleted.

84 changes: 0 additions & 84 deletions media/leaflet-locatecontrol/README.md

This file was deleted.

44 changes: 0 additions & 44 deletions media/leaflet-locatecontrol/src/L.Control.Locate.0.5.css

This file was deleted.

0 comments on commit d19f716

Please sign in to comment.