Closed bert2002 closed 3 years ago
yes seems ormconfig.js
is still needed. Any reason why two different configuration styles are necessary?
@bert2002 We just wanted to leave things for TypeORM as it is. https://github.com/typeorm/typeorm/tree/master/src/connection/options-reader
I am not sure if I understand correctly, because it does not work with only the environment file. .envrc
- as I understand you - both should work?
It does work with only the environment file for me.
export TYPEORM_CONNECTION=postgres
export TYPEORM_HOST=localhost
export TYPEORM_USERNAME=terra
export TYPEORM_PASSWORD=abcd
export TYPEORM_DATABASE=fcd
export TYPEORM_PORT=5432
export TYPEORM_SYNCHRONIZE=false
export TYPEORM_LOGGING=false
export TYPEORM_ENTITIES=src/orm/*Entity.ts
export TYPEORM_MIGRATIONS=src/orm/migration/*.ts
Hi, we built fcd and only created the
.envrc
configuration file. Is theormconfig.js
still needed for anything else?Thanks, bert