Commit Graph

13 Commits

Author SHA1 Message Date
OldHawk
1fc901b0b3 load comment and reply data 2017-04-23 03:14:16 +08:00
OldHawk
72ea937b9e add setDatePrototypeToJSON to format date 2017-04-22 17:22:44 +08:00
Mikael Korpela
23fd205d81 fix(server): Remove unused loadModels() (#1426) 2016-08-26 13:34:02 +03:00
Faraj Farook
36e956ea71 fix(core): Adding server info to log initialization
Adding host information to the log initialization and aligning the
texts.
2016-01-17 19:26:52 +05:30
Faraj Farook
6e4c54f712 feat(config): Adding host configuration feature
Adding the functionality of configuring the host to bind the server. By
default this is set to 0.0.0.0.
2015-12-23 03:11:25 +05:30
mleanos
28f1f57a26 [hotfix] SeedDB missing in env config
Adds a check for the existence of the seedDB config setting, before
attempting to read config.seedDB.seed setting.

Solves the problem when the seedDB config setting is missing from a
environment config, that causes the application to throw an exception at
startup.

Also, adds the seedDB setting to the Cloud-Foundry env config.
2015-10-28 14:21:11 -07:00
mleanos
0560062eab Seed options - logResults
Added an options object to the database seed configuration. Currently,
the only option implemented is `logResults`; set using the seedDB env
config
options (default to "true").

Modified the definition of the env config for seedDB. It's now an
object, with
options.

Setting the logResults option is set to `false` in the core
configuration server test suite.

Also, fixed an issue with how env configs were reading the seedDB
setting from the env variables. Previously, the config was getting set
by
looking for merely the existence of the env variable (MONGO_SEED).
However,
if this setting existed but was set to "false", the seedDB would be
turned on.

Added the SeedDB user details to the env config, and seedDB options.

Added tests to the core server config test suite

should have seedDB configuration set for "regular" user
should have seedDB configuration set for admin user
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" when they already exist
should ONLY seed admin user account when NODE_ENV is set to "production"
with custom admin
should seed admin, and "regular" user accounts when NODE_ENV is set to
"test" with custom options
should NOT seed admin user account if it already exists when NODE_ENV is
set to "production"
should NOT seed "regular" user account if missing email when NODE_ENV
set to "test"

Added support for environment variables to seedDB env configs; currently
only supporting username & email.

Refactored how the SeedDB rejects were being handled
2015-10-09 13:48:11 -07:00
Liran Tal
988609399a refactoring the seeddb logic to work with promises all over due to all the async behavior 2015-09-28 11:29:39 +03:00
Liran Tal
a12746e3c1 Adding support for meanjs-version specific configuration option and displaying both MEAN.JS project and App project version numbers on start-up 2015-09-06 11:12:26 +03:00
Liran Tal
58b371b0ec Adding MEAN.JS version information as part of the startup info when app loads 2015-09-05 20:41:06 +03:00
Andrew Throener
ea97f2e7d8 Database seeding 2015-08-13 09:37:24 -05:00
Ryan Hutchison
cb9d7e3db6 fix indentation 2015-08-11 01:01:12 -04:00
Liran Tal
edb62344bc Refactoring server application service to enable modularity and callbacks, as well as provide app, db, config variables outside of server.js 2015-07-30 23:04:29 +03:00