Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

config.domain Vs. config.app.domain #1506

Closed
19r3ka opened this issue Sep 14, 2016 · 4 comments · Fixed by #1572
Closed

config.domain Vs. config.app.domain #1506

19r3ka opened this issue Sep 14, 2016 · 4 comments · Fixed by #1572

Comments

@19r3ka
Copy link

19r3ka commented Sep 14, 2016

Hi all,

Going through the code, these lines kinda bugged me:

var validateDomainIsSet = function (config) { if (!config.app.domain) { console.log(chalk.red('+ Important warning: config.domain is empty. It should be set to the fully qualified domain of the app.')); } };

is domain a key on the nested app object? Because judging by the following important warning, it is a key on the main config object. Even in config/env/default.js, it is set on the top-level object:

app: { title: 'MEAN.JS', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'mongodb, express, angularjs, node.js, mongoose, passport', googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID' }, port: process.env.PORT || 3000, host: process.env.HOST || '0.0.0.0', // DOMAIN config should be set to the fully qualified application accessible // URL. For example: https://www.myapp.com (including port if required). domain: process.env.DOMAIN,

I still think I'm the one mistaking here so please correct me, I am still learning the MEAN stack.

@hyperreality
Copy link
Contributor

Looks like a bug, submit a PR :)

@sujeethk
Copy link
Contributor

This is a quickfix. @19r3ka are you opening a PR?

@mleanos
Copy link
Member

mleanos commented Oct 15, 2016

@sujeethk Feel free to open a PR to fix this, since this should be pretty quick.

sujeethk added a commit to sujeethk/mean that referenced this issue Oct 15, 2016
mleanos pushed a commit that referenced this issue Oct 16, 2016
@pengdauphin
Copy link

I still get the config.domain is the empty message, and could not link to MongoDB. Anyone could give a more detail explanation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants