mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
openshift
This commit is contained in:
parent
a3279a10a8
commit
0f92c4d38c
2
init.js
2
init.js
@ -4,7 +4,7 @@ process.env.rootdir = __dirname;
|
||||
var LIVE = process.env.LIVE || (process.env.NODE_ENV === 'production')
|
||||
, web = require('coalesce')
|
||||
, opt = {};
|
||||
opt.port = process.env.PORT || process.env.OPENSHIFT_NODEJS_POR || process.env.VCAP_APP_PORT || 8888;
|
||||
opt.port = process.env.PORT || process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || 8888;
|
||||
|
||||
opt.hook = {
|
||||
pre: (function(req,res){
|
||||
|
1
shots.js
1
shots.js
@ -166,6 +166,7 @@ module.exports = require('theory')
|
||||
}
|
||||
shot.spray.transform = function(g,m,d){if(d){d()}}
|
||||
shot.spray.action = function(m){
|
||||
console.log("spray", m);
|
||||
if(!m || !m.how){ return }
|
||||
if(m.where && m.where.mid){
|
||||
console.log("servers chats:", m);
|
||||
|
@ -1,6 +1,7 @@
|
||||
module.exports=require('theory')
|
||||
('tests',function(a){
|
||||
if(root.node){
|
||||
console.log("tests live!");
|
||||
var shot = require('../shots')({src: a.com}).pump(function(g, m, done){
|
||||
done();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user