mirror of
https://github.com/amark/gun.git
synced 2025-06-04 13:16:44 +00:00
yay
This commit is contained in:
parent
a603a63b8c
commit
19da14e79a
3
init.js
3
init.js
@ -1,4 +1,5 @@
|
||||
process.env.rootdir = __dirname;
|
||||
console.log(">>>>>>>>>>>>>>>>>>>> environment", process.env.NODE_ENV);
|
||||
var LIVE = process.env.LIVE || (process.env.NODE_ENV === 'production')
|
||||
, web = require(process.env.COALESCEPATH = LIVE?'coalesce':process.env.rootdir+'/../coalesce/coalesce')
|
||||
, opt = {};
|
||||
@ -9,7 +10,7 @@ process.env.domain = LIVE? 'http://gunjs.herokuapp.com' :
|
||||
})})();
|
||||
opt.hook = {
|
||||
pre: (function(req,res){
|
||||
console.log("--------- "+req.flow+" : "+req.url.pathname +" ---------------");
|
||||
//console.log("--------- "+req.flow+" : "+req.url.pathname +" ---------------");
|
||||
})
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user