2016-10-14 11:28:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-03-31 00:29:34 +00:00
|
|
|
cat << EOF > .sequelizerc
|
2016-10-14 11:28:54 +00:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
'config': path.resolve('config.json'),
|
|
|
|
'migrations-path': path.resolve('lib', 'migrations'),
|
|
|
|
'models-path': path.resolve('lib', 'models'),
|
|
|
|
'url': process.env.DATABASE_URL,
|
|
|
|
'dialect': process.env.DB_TYPE
|
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2019-03-31 00:29:34 +00:00
|
|
|
cat << EOF > config.json
|
2016-12-11 04:07:46 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
"production": {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|