2016-10-14 19:28:54 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-03-31 01:29:34 +01:00
|
|
|
cat << EOF > .sequelizerc
|
2016-10-14 19:28:54 +08: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 01:29:34 +01:00
|
|
|
cat << EOF > config.json
|
2016-12-11 12:07:46 +08:00
|
|
|
|
|
|
|
{
|
|
|
|
"production": {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|