mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Use dburl to configurate
This commit is contained in:
parent
3a091ff9a5
commit
96fb3743f3
3 changed files with 7 additions and 6 deletions
|
@ -15,8 +15,8 @@ dbconfig.logging = config.debug ? logger.info : false;
|
|||
var sequelize = null;
|
||||
|
||||
// Heroku specific
|
||||
if (process.env.DATABASE_URL)
|
||||
sequelize = new Sequelize(process.env.DATABASE_URL);
|
||||
if (config.dburl)
|
||||
sequelize = new Sequelize(config.dburl, dbconfig);
|
||||
else
|
||||
sequelize = new Sequelize(dbconfig.database, dbconfig.username, dbconfig.password, dbconfig);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue