Removed log for deploy (optimize space on the cloud)

This commit is contained in:
Thomas FORGIONE
2015-06-25 17:21:19 +02:00
parent e915fb58e7
commit 3c2599f29b
3 changed files with 17 additions and 11 deletions

View File

@@ -7,6 +7,9 @@ var fs = require('fs');
module.exports = function(parent, options){
var verbose = options.verbose;
verbose && console.log("Loading controllers :");
fs.readdirSync(__dirname + '/../controllers').forEach(function(name){
// index.js in controller, with function as pages (views.py for django)
@@ -27,9 +30,9 @@ module.exports = function(parent, options){
verbose && console.log('\t' + name + ':');
for (var key in urls) {
app.get(key, obj[urls[key]]);
console.log('\t\t' + key + ' -> ' + name + '.' + urls[key]);
verbose && console.log('\t\t' + key + ' -> ' + name + '.' + urls[key]);
}
console.log();
verbose && console.log();
// mount the app
parent.use(app);

View File

@@ -8,6 +8,8 @@ var fs = require('fs');
module.exports = function(parent, options){
var verbose = options.verbose;
verbose && console.log("Loading controllers :");
fs.readdirSync(__dirname + '/../posts').forEach(function(name){
// index.js in controller, with function as pages (views.py for django)
@@ -28,9 +30,9 @@ module.exports = function(parent, options){
verbose && console.log('\t' + name + ':');
for (var key in urls) {
app.post(key, obj[urls[key]]);
console.log('\t\t' + key + ' -> ' + name + '.' + urls[key]);
verbose && console.log('\t\t' + key + ' -> ' + name + '.' + urls[key]);
}
console.log();
verbose && console.log();
// mount the app
parent.use(app);