diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-03 13:52:20 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-03 13:52:20 -0400 |
| commit | f768ab296c07ce93efe9f2507cdf4b795aa10013 (patch) | |
| tree | 0470e2f1fbf96a23e70e324bbf25d5b286750b30 /knexfile.js | |
| parent | 21b3290d8bc6276fb95ece54494fdfb518552de6 (diff) | |
pull in app skeleton from asdf-yt
Diffstat (limited to 'knexfile.js')
| -rw-r--r-- | knexfile.js | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/knexfile.js b/knexfile.js new file mode 100644 index 0000000..027a291 --- /dev/null +++ b/knexfile.js @@ -0,0 +1,55 @@ +// Update with your config settings. + +require('dotenv').load() + +module.exports = { + + development: { + client: 'mysql2', + connection: { + database: process.env.DB_NAME, + user: process.env.DB_USER, + password: process.env.DB_PASS + }, + pool: { + min: 2, + max: 10 + }, + migrations: { + tableName: 'knex_migrations' + } + }, + + staging: { + client: 'mysql2', + connection: { + database: process.env.DB_NAME, + user: process.env.DB_USER, + password: process.env.DB_PASS + }, + pool: { + min: 2, + max: 10 + }, + migrations: { + tableName: 'knex_migrations' + } + }, + + production: { + client: 'mysql2', + connection: { + database: process.env.DB_NAME, + user: process.env.DB_USER, + password: process.env.DB_PASS + }, + pool: { + min: 2, + max: 10 + }, + migrations: { + tableName: 'knex_migrations' + } + } + +}; |
