openshift

This commit is contained in:
theory 2014-04-01 03:58:11 -06:00
parent a3279a10a8
commit 0f92c4d38c
3 changed files with 3 additions and 1 deletions

View File

@ -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){

View File

@ -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);

View File

@ -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();
});