Skip to content

Commit

Permalink
test with env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nohshow committed Dec 30, 2015
1 parent 228b866 commit fb91ea7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions routes/jdg.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
//env variables

var DG_HOSTNAME_HTTP= process.env.DG_HOSTNAME_HTTP
var DG_HOSTNAME_HTTP= process.env.DG_HOSTNAME_HTTP;
var DG_PORT_HTTP= process.env.DG_PORT_HTTP;
var DATAGRID_APP_DG_SERVICE_HOST=process.env.DATAGRID_APP_DG_SERVICE_HOST;
var DATAGRID_APP_DG_SERVICE_PORT=process.env.DATAGRID_APP_DG_SERVICE_PORT;

var jdgOptions={
host: DG_HOSTNAME_HTTP,
host: DATAGRID_APP_DG_SERVICE_HOST,
//path: "/rest/teams/test",
path: "/rest/demoCache/test",
method: "PUT",
port: "8080",
port: DATAGRID_APP_DG_SERVICE_PORT,
data: "1234",
headers: {
'Content-type':'text/plain'
Expand Down

0 comments on commit fb91ea7

Please sign in to comment.