Commit 462f5da198d907884986befdd68d7fcd3e1d99f0

Authored by José Maria Villac Pinheiro
1 parent 533125f0
Exists in master

V. 0.8.6 - Production test

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
@@ -7,7 +7,7 @@ const cookieSession = require("cookie-session"); @@ -7,7 +7,7 @@ const cookieSession = require("cookie-session");
7 var cookieParser = require("cookie-parser"); 7 var cookieParser = require("cookie-parser");
8 var bodyParser = require("body-parser"); 8 var bodyParser = require("body-parser");
9 const keys = require("./config/keys"); 9 const keys = require("./config/keys");
10 -var util = require('util'); 10 +// var util = require('util');
11 var index = require("./routes/index"); 11 var index = require("./routes/index");
12 12
13 var app = express(); 13 var app = express();
@@ -30,7 +30,6 @@ if (process.env.NODE_ENV === 'production') { @@ -30,7 +30,6 @@ if (process.env.NODE_ENV === 'production') {
30 const path = require('path'); 30 const path = require('path');
31 app.get('*', (req, res) => { 31 app.get('*', (req, res) => {
32 console.log ("NEXUS-__dirname: " + __dirname); 32 console.log ("NEXUS-__dirname: " + __dirname);
33 - console.log ("NEXUS-res:" + util.inspect(res));  
34 res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html')); 33 res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));
35 }); 34 });
36 } 35 }