Skip to content

Commit

Permalink
Update Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
greggmojica committed Mar 28, 2017
1 parent 26134b2 commit 0136420
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"logo": "https://developer.firstdata.com/img/logo.png",
"keywords": ["node", "express", "static"],
"env": {
"APP_KONG_URL": {
"SANDBOX_URL": {
"description": "The URL you recieved via Email"
},
"APP_KONG_USERNAME": {
"API_KEY": {
"description": "The username you recieved via Email"
},
"APP_KONG_SECRET": {
"API_SECRET": {
"description": "The secret you recieved via Email"
},
"APP_PORT": {
"description": "The port this app should run on"
"description": "The port this app should run on (i.e. 3000, 8081, etc.)"
}
}
}
8 changes: 4 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ var config = require('config');
/**
* load configuration from config/default.json or from environment variables if any
*/
var kongUrl = (process.env.APP_KONG_URL ? process.env.APP_KONG_URL : config.get('kong.url')).replace(/\/$/, "");
var username = process.env.APP_KONG_USERNAME ? process.env.APP_KONG_USERNAME : config.get('kong.username')
var secret = process.env.APP_KONG_SECRET ? process.env.APP_KONG_SECRET : config.get('kong.secret');
var kongUrl = (process.env.SANDBOX_URL ? process.env.SANDBOX_URL : config.get('kong.url')).replace(/\/$/, "");
var username = process.env.API_KEY ? process.env.API_KEY : config.get('kong.username')
var secret = process.env.API_SECRET ? process.env.API_SECRET : config.get('kong.secret');
var port = process.env.APP_PORT ? process.env.APP_PORT : config.get('port');


Expand Down Expand Up @@ -412,4 +412,4 @@ app.post('/marketplace/v1/application/update', function(req, res) {
if (error) throw new Error(error);
res.status(response.statusCode).send(body);
});
});
});

0 comments on commit 0136420

Please sign in to comment.