Created
January 15, 2018 10:34
-
-
Save TinyExplosions/b91062097ab1db05f903fe86979fe394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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