Skip to content

Commit

Permalink
adjusted knex migration settings
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed Sep 13, 2017
1 parent 4adaeca commit e24f5e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions knexfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//I only want migrations, rollbacks, and seeds to run when the NODE_ENV is specified
//in the knex seed/migrate command. Knex will error out if it is not specified.
if (!process.env.NODE_ENV) { throw new Error('NODE_ENV not set') }

require('dotenv').config();

module.exports = {
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ knex migrate:make create_users_table
# make seed
knex seed:make seed_users


```

## General Information
Expand Down

0 comments on commit e24f5e4

Please sign in to comment.