Closed sschimmel closed 8 years ago
Hi,
What ORM did you use ? with the trailpack-ORM version please. Also check you set NODE_ENV to testing
.
You also need the last version of trails here 1.0.0-beta-1 is not the last 1.0.4
is.
Hi,
Manually updated to 1.0.4 as npm did not detect it, didn't help to solve the issue. The ORM I use is mongoose with version 0.4.1. of trailpack-mongoose.
@sschimmel check https://github.com/trailsjs/trailpack-mongoose/tree/master/config
and check your trailpack-mongoose config for database.js
file is included or not??
May be it will help.
Moved this issue into trailpack-mongoose repo. https://github.com/trailsjs/trailpack-mongoose/issues/16
Closing this.
Issue Description
I have a default config in config/database.js and a different config in config/env/testing.js. When I set the environment to testing the database configuration from testing.js is not used. When I remove the stores and models objects from database.js trails just does not detect any database configuration.
database.js:
testing.js:
Environment