Skip to content

Commit

Permalink
REMOVED - static cache & compress + FIXED rocket assets exports race …
Browse files Browse the repository at this point in the history
…condition for client-build
  • Loading branch information
Gabriel Lesperance committed Aug 8, 2012
1 parent f438abb commit a1d91fe
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions lib/client/client.js
Expand Up @@ -534,9 +534,6 @@ exports.setup = function setup_client() {
, buildClient
;

app.use(express.compress());

app.use(express.staticCache());
/***
* sets up a static middleware to serve the webapp `client/static` folder
* as `/static`
Expand Down Expand Up @@ -634,18 +631,7 @@ exports.setup = function setup_client() {

, function (callback) {
async.parallel(
[ function (callback) {
if (buildClient)
wrench.copyDirRecursive(
path.join(__dirname, 'rocket-js')
, path.join(client_build_js_dir_path, 'rocket')
, callback);

else
callback(null);
}

, function (callback) {
[ function (callback) {
async.waterfall(
[ function (callback) {
if (buildClient)
Expand All @@ -663,6 +649,17 @@ exports.setup = function setup_client() {
else
callback(null);
}

, function (callback) {
if (buildClient)
wrench.copyDirRecursive(
path.join(__dirname, 'rocket-js')
, path.join(client_build_js_dir_path, 'rocket')
, callback);

else
callback(null);
}

, function(callback) {

Expand Down

0 comments on commit a1d91fe

Please sign in to comment.