mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
basic rhc
This commit is contained in:
parent
8c3e6d8f2e
commit
89500af1e7
11
init.js
11
init.js
@ -4,6 +4,17 @@ console.log("RHC GO FOR THIS");
|
||||
console.log(process.env.OPENSHIFT_NODEJS_IP);
|
||||
console.log(process.env.OPENSHIFT_NODEJS_PORT, process.env.PORT, process.env.VCAP_APP_PORT);
|
||||
|
||||
var http = require('http');
|
||||
|
||||
var server = http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end('Hello Shift');
|
||||
});
|
||||
server.listen(process.env.OPENSHIFT_NODEJS_PORT);
|
||||
|
||||
return;
|
||||
|
||||
|
||||
process.env.rootdir = __dirname;
|
||||
var LIVE = process.env.LIVE || (process.env.NODE_ENV === 'production')
|
||||
, web = require('coalesce')
|
||||
|
Loading…
x
Reference in New Issue
Block a user