Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions application.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ serviceSync.initDataset('users', {
throw err;
}

var port = process.env.FH_PORT || process.env.VCAP_APP_PORT || 8001;
app.listen(port, function() {
var port = process.env.FH_PORT || process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || 8001;
var host = process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0';
app.listen(port, host, function() {
log.info('App started at: %s on port: %s', new Date(), port);
});
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-rest-sync-proxy-template",
"version": "0.1.0",
"version": "0.1.1",
"license": "mit",
"description": "Sample Cloud Application demonstrating the use of fh-rest-sync-proxy",
"main": "application.js",
Expand All @@ -13,7 +13,7 @@
"dependencies": {
"express": "^4.13.4",
"fh-bunyan": "^0.1.3",
"fh-mbaas-api": "^5.5.6",
"fh-mbaas-api": "5.13.12",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alanmoran this probably needs to be "~5.14.0" now?

"fh-rest-sync-proxy": "git+https://github.com/feedhenry-staff/fh-rest-sync-proxy"
},
"devDependencies": {
Expand Down