diff --git a/bin/heroku b/bin/heroku index be5d6e99..48a56fb5 100755 --- a/bin/heroku +++ b/bin/heroku @@ -4,7 +4,16 @@ set -e if [ ! -z "$DYNO" ]; then # setup config files - cp .sequelizerc.example .sequelizerc + cat << EOF > .sequelizerc +const path = require('path') +const config = require('./lib/config') + +module.exports = { + 'migrations-path': path.resolve('lib', 'migrations'), + 'models-path': path.resolve('lib', 'models'), + url: process.env['CMD_DB_URL'] || config.dbURL +} +EOF cat << EOF > config.json