text: var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 8080;
  
  var Gun = require('../');
  
  var server = require('http').createServer(function(req, res){
  	if(Gun.serve(req, res)){ return } // filters gun requests!
  	require('fs').createReadStream(require('path').join(__dirname, req.url)).on('error',function(){ // static files!
  		res.writeHead(200, {'Content-Type': 'text/html'});
  		res.end(require('fs')
  			.readFileSync(require('path')
  			.join(__dirname, 'index.html') // or default to index
  		));
  	}).pipe(res); // stream
  });
  
  var gun = Gun({ 
  	file: 'data.json',
  	web: server,
  	s3: {
  		key: process.env.AWS_ACCESS_KEY_ID, // Use environment variables
  		secret: process.env.AWS_SECRET_ACCESS_KEY, // so your keys are not
  		bucket: process.env.AWS_S3_BUCKET // hard coded into your app!
  		// https://devcenter.heroku.com/articles/config-vars
  	}
  });
  
  server.listen(port);
  
  console.log('Server started on port ' + port + ' with /gun');
  