From 83e4676edf8dff5bd6423e6c860f8a93cda17a79 Mon Sep 17 00:00:00 2001 From: Ran Guin Date: Wed, 16 Jun 2021 22:11:21 -0700 Subject: add knexfile --- sampleconfig/knexfile.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sampleconfig/knexfile.js diff --git a/sampleconfig/knexfile.js b/sampleconfig/knexfile.js new file mode 100644 index 00000000..3b41ef73 --- /dev/null +++ b/sampleconfig/knexfile.js @@ -0,0 +1,46 @@ +// Update with your config settings. + +module.exports = { + + development: { + client: 'mysql2', + connection: { + database: 'coinos', + user: 'tester', + password: 'pass' + } + }, + + staging: { + client: 'mysql2', + connection: { + database: 'coinos_stage', + user: 'staging_user', + password: 'pass' + }, + pool: { + min: 2, + max: 10 + }, + migrations: { + tableName: 'knex_migrations' + } + }, + + production: { + client: 'mysql2', + connection: { + database: 'coinos', + user: 'webuser', + password: 'pass' + }, + pool: { + min: 2, + max: 10 + }, + migrations: { + tableName: 'knex_migrations' + } + } + +}; -- cgit v1.2.3