Skip to content

Instantly share code, notes, and snippets.

@ZohebMOPO
Last active April 1, 2022 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZohebMOPO/83f333de2c1012dbd27d014426a94b67 to your computer and use it in GitHub Desktop.
Save ZohebMOPO/83f333de2c1012dbd27d014426a94b67 to your computer and use it in GitHub Desktop.
my typeorm config
default: # default connection
type: "postgres"
host: "localhost"
port: 5432
username: "root"
password: "postgres"
database: "cool-app"
synchronize: true
logging: false
entities: ["src/entity/**/*.ts"]
migrations: ["src/migration/**/*.ts"]
subscribers: ["src/subscriber/**/*.ts"]
cli:
entitiesDir: "src/entity"
migrationsDir: "src/migration"
subscribersDir: "src/subscriber"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment