fix: heroku .seqeulzierc file

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2020-03-02 22:11:43 +08:00
parent 5c9438697a
commit 109e751da8
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 11 deletions

View File

@ -4,17 +4,7 @@ set -e
if [ ! -z "$DYNO" ]; then
# setup config files
cat << EOF > .sequelizerc
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
}
EOF
cp .sequelizerc.example .sequelizerc
cat << EOF > config.json