knexfile.js 434 B

1234567891011121314151617181920
  1. const env = require("./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.DB_PORT,
  10. password: env.DB_PASSWORD,
  11. ssl: env.DB_SSL,
  12. },
  13. migrations: {
  14. tableName: "knex_migrations",
  15. directory: "server/migrations",
  16. disableMigrationsListValidation: true,
  17. }
  18. }
  19. };