Giter VIP home page Giter VIP logo

bootstrap-compressord's Introduction

Twitter Bootstrap Compressor'd

Overview

This is a simple template project utilizing Twitter Bootstrap and managing static assets with django-compressor.

The purpose of this project is two-fold.

  • Keep a template project that can be improved later
  • Compare django-compressor with other methods of managing static assets with Django

Obtaining

  • git clone git://github.com/estebistec/bootstrap-compressord.git
  • cd bootstrap-compressord
  • git submodule update --init # Pull in the Twitter Bootstrap git submodule

Running in development mode

  • cd bootstrap_compressord
  • ./manage.py collectstatic --noinput
  • ./manage.py runserver

Running an nginx "production" setup

Run the following command from the source root directory:

  • ./run-nginx.sh

This script will run collectstatic, fire up nginx as the current user based on a local conf, and then run the Django app behind it. nginx will server your static files. After your terminate the Django app, nginx will stop too.

NOTE I run nginx on Mac OSX, as installed by homebrew. YMMV on Linux or Windows.

Running an Amazon S3 "production" setup

  • Create an S3 bucket to collect your static assets in and serve them from

Then, from the source root directory:

  • S3KEY=XXX S3SECRET="XXX" S3BUCKET="mah-bukkit" ./run-s3.sh

Of course, substitute in your AWS key, secret, and bukkit, I mean, bucket!

Updating Twitter Bootstrap

The Bootstrap git submodule can be updated as follows:

  • cd bootstrap_compressord/twitter_bootstrap/static
  • git checkout v2.0.5 # Or other commit, preferably a release tag
  • cd ../..
  • git add bootstrap_compressord/twitter_bootstrap/static
  • git commit -m "Upgrade twitter bootstrap to 2.0.5"

bootstrap-compressord's People

Contributors

estebistec avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

vfulco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.