aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-06-16 22:11:21 -0700
committerRan Guin <[email protected]>2021-06-16 22:11:21 -0700
commit83e4676edf8dff5bd6423e6c860f8a93cda17a79 (patch)
tree9042f9176a64504e412574ef00613d4afda9308f
parentf66dec830f388817642f5f37c1572a6e3d58b084 (diff)
downloadcoinos-server-83e4676edf8dff5bd6423e6c860f8a93cda17a79.tar.gz
coinos-server-83e4676edf8dff5bd6423e6c860f8a93cda17a79.zip
add knexfile
-rw-r--r--sampleconfig/knexfile.js46
1 files changed, 46 insertions, 0 deletions
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'
+ }
+ }
+
+};