Skip to content

Commit

Permalink
For #3 api host for publishing content to SCS needs to be full string…
Browse files Browse the repository at this point in the history
…, cannot assume protocol or format
  • Loading branch information
victorkane committed Dec 4, 2018
1 parent 4ae0062 commit 42b8850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cms/.env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
API_HOST=0.0.0.0
API_PORT=1234
API_HOST=http://example.com:1234
ROOT_PATH_CONTENT=/home/user/ddcmr/cms/content
2 changes: 1 addition & 1 deletion cms/upsert/upsert.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require('dotenv').config()
// console.log(util.inspect(contentItem, { showHidden: false, depth: null}))
// const util = require('util')

const apiHost = 'http://' + process.env.API_HOST + ':' + process.env.API_PORT
const apiHost = process.env.API_HOST
let contentType = null;

if (process.argv.length > 3) {
Expand Down

0 comments on commit 42b8850

Please sign in to comment.