knexfile.ts 356 B

123456789101112131415161718
  1. import env from "./server/env";
  2. module.exports = {
  3. production: {
  4. client: "postgresql",
  5. connection: {
  6. host: env.DB_HOST,
  7. database: env.DB_NAME,
  8. user: env.DB_USER,
  9. port: env.PORT,
  10. password: env.DB_PASSWORD
  11. },
  12. migrations: {
  13. tableName: "knex_migrations",
  14. directory: "server/migrations"
  15. }
  16. }
  17. };