#!/bin/bash set -e if [ ! -z "$DYNO" ]; then # setup config files 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 { "production": { } } EOF fi