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

Commit

Permalink
Merge pull request #137 from Pomax/bug873064
Browse files Browse the repository at this point in the history
removed soundcloudness
  • Loading branch information
Pomax committed Aug 1, 2013
2 parents 9c51b15 + e84fdac commit 3c0b247
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 66 deletions.
16 changes: 8 additions & 8 deletions app/http/server.js
Expand Up @@ -7,18 +7,18 @@
// Module dependencies.
require( "../../lib/extensions/number" );

var express = require( "express" ),
logger = require( "../../lib/logger" ),
util = require( "util" ),
application = require( "./controllers/application" ),
env = require( "../../config/environment" ),
var application = require( "./controllers/application" ),
env = require( "../../config/environment" );
express = require( "express" ),
helmet = require( "helmet" ),
i18n = require( "i18n-abide" ),
lessMiddleWare = require( "less-middleware" ),
logger = require( "../../lib/logger" ),
nunjucks = require( "nunjucks" ),
path = require( "path" ),
route = require( "./routes" ),
userHandle = require( "../models/user" )( env ),
lessMiddleWare = require( "less-middleware" ),
route = require( "./routes" ),
path = require( "path" );
util = require( "util" );

var http = express(),
nunjucksEnv = new nunjucks.Environment( new nunjucks.FileSystemLoader( path.join( __dirname, "views" ) ) );
Expand Down
40 changes: 0 additions & 40 deletions config/cloudfoundry-env.js

This file was deleted.

23 changes: 5 additions & 18 deletions config/environment.js 100644 → 100755
@@ -1,18 +1,5 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

var habitat = require( "habitat" );

// Load config from ".env"
habitat.load();

var env = new habitat();

var urlutil = require( "url" );

// In here we hack the environment variables that habitat uses based on
// VCAP_SERVICES provided by CloudFoundry
require( "./cloudfoundry-env" );

module.exports = env;
module.exports = (function() {
var habitat = require( "habitat" );
habitat.load();
return new habitat();
}());

0 comments on commit 3c0b247

Please sign in to comment.