Revert "fix heroku again"

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

View File

@ -4,16 +4,7 @@ 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
cp .sequelizerc.example .sequelizerc
cat << EOF > config.json