Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:mapbox/tilestream into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Jun 2, 2011
2 parents ce5573a + e0b2a3f commit dd6bcc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var util = require('util'),
env = process.env.NODE_ENV || 'development';
var util = require('util');

// Application bootstrap. Ensures that tiles directory exists at server start.
module.exports = function(settings, callback) {
Expand Down
8 changes: 2 additions & 6 deletions servers/Route.bones
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var env = process.env.NODE_ENV || 'development';

servers['Route'].augment({
assets: {
styles: [
Expand All @@ -13,13 +11,11 @@ servers['Route'].augment({
]
},
initializeAssets: function(parent, app) {
var maxAge = env == 'production' ? 3600 : 0;

parent.call(this, app);
this.get('/assets/tilestream/css/vendor.css',
mirror.assets(this.assets.styles, { type: '.css', maxAge: maxAge }));
new mirror(this.assets.styles, { type: '.css' }));
this.get('/assets/tilestream/js/vendor.js',
mirror.assets(this.assets.scripts, { type: '.js', maxAge: maxAge }));
new mirror(this.assets.scripts, { type: '.js' }));
},
initializeModels: function(parent, app) {
this.models = app.models;
Expand Down

0 comments on commit dd6bcc0

Please sign in to comment.