Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require("appdynamics").profile({
controllerHostName: '<CONTROLLER URI>',
controllerPort: 443,
controllerSslEnabled: true,
accountName: '<ACCOUNT>',
accountAccessKey: '<KEY>',
applicationName: '<APP NAME>',
tierName: '<TIER NAME>',
nodeName: '<NODE NAME>'
});
var express = require('express');
var cors = require('cors');
var app = express();
// Enable CORS for all requests
app.use(cors());
app.use('/hello', require('./lib/hello.js')());
var port = process.env.FH_PORT || process.env.OPENSHIFT_NODEJS_PORT || 8001;
var host = process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0';
app.listen(port, host, function() {
console.log("App started at: " + new Date() + " on port: " + port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment