knexfile.js 422 B

1234567891011121314151617181920
  1. const env = require("./server/env");
  2. module.exports = {
  3. production: {
  4. client: env.DB_CLIENT,
  5. connection: {
  6. filename: env.DB_FILENAME,
  7. host: env.DB_HOST,
  8. database: env.DB_NAME,
  9. user: env.DB_USER,
  10. port: env.DB_PORT,
  11. password: env.DB_PASSWORD,
  12. ssl: env.DB_SSL,
  13. },
  14. migrations: {
  15. tableName: "knex_migrations",
  16. directory: "server/migrations"
  17. }
  18. }
  19. };