Skip to content

Commit

Permalink
Merge pull request #29 from e-ucm/configValuesFix
Browse files Browse the repository at this point in the history
Fixes A2 config-values and some error messages.
  • Loading branch information
gorco committed Jan 21, 2016
2 parents 26864d2 + 040437b commit 3f1083b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions app/config-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,11 @@ initFromEnv(exports.testValues, prefix, links);

exports.defaultValues.apiPath = 'http://' + exports.defaultValues.a2Host + ':' + exports.defaultValues.a2Port + '/api';
exports.testValues.apiPath = exports.defaultValues.apiPath;

exports.defaultValues.a2HomePage = 'http://' + exports.defaultValues.a2Host + ':' + exports.defaultValues.a2Port + '/';
exports.defaultValues.a2ApiPath = exports.defaultValues.a2HomePage + 'api/';
exports.testValues.a2ApiPath = exports.defaultValues.a2ApiPath;
exports.testValues.a2HomePage = exports.defaultValues.a2HomePage;
exports.testValues.a2AdminUsername = exports.defaultValues.a2AdminUsername;
exports.testValues.a2AdminPassword = exports.defaultValues.a2AdminPassword;

4 changes: 2 additions & 2 deletions bin/signup-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ request.post(baseUsersAPI + 'login', {
if (err) {
console.error(err);
if (err.errno && err.errno.indexOf('ECONNREFUSED') > -1) {
console.error('Could not connect to MongoDB!');
console.error('Could not connect to A2 to login!');
return process.exit(-1);
}
console.log('Did not register the frontend with A2, continuing anyway!');
Expand All @@ -48,7 +48,7 @@ request.post(baseUsersAPI + 'login', {
if (err) {
console.error(err);
if (err.errno && err.errno.indexOf('ECONNREFUSED') > -1) {
console.error('Could not connect to MongoDB!');
console.error('Could not connect to A2 to register the frontend application!');
return process.exit(-1);
}
console.log('Did not register the backend with A2, continuing anyway!');
Expand Down

0 comments on commit 3f1083b

Please sign in to comment.