mirror of https://github.com/status-im/codimd.git
Revert "fix heroku again"
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
1cd4dce6b6
commit
5b2320f516
11
bin/heroku
11
bin/heroku
|
@ -4,16 +4,7 @@ set -e
|
||||||
|
|
||||||
if [ ! -z "$DYNO" ]; then
|
if [ ! -z "$DYNO" ]; then
|
||||||
# setup config files
|
# setup config files
|
||||||
cat << EOF > .sequelizerc
|
cp .sequelizerc.example .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
|
|
||||||
|
|
||||||
cat << EOF > config.json
|
cat << EOF > config.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue