Skip to content

Commit 1cd4dce

Browse files
committed
fix heroku again
Signed-off-by: BoHong Li <raccoon@hackmd.io>
1 parent 109e751 commit 1cd4dce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bin/heroku

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ set -e
44

55
if [ ! -z "$DYNO" ]; then
66
# setup config files
7-
cp .sequelizerc.example .sequelizerc
7+
cat << EOF > .sequelizerc
8+
const path = require('path')
9+
const config = require('./lib/config')
10+
11+
module.exports = {
12+
'migrations-path': path.resolve('lib', 'migrations'),
13+
'models-path': path.resolve('lib', 'models'),
14+
url: process.env['CMD_DB_URL'] || config.dbURL
15+
}
16+
EOF
817

918
cat << EOF > config.json
1019

0 commit comments

Comments
 (0)