mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
14 lines
272 B
JavaScript
14 lines
272 B
JavaScript
'use strict';
|
|
|
|
function getDatabaseUrl() {
|
|
if (process.env.TEST_DATABASE_URL) {
|
|
return process.env.TEST_DATABASE_URL;
|
|
} else {
|
|
return 'postgres://unleash_user:passord@localhost:5432/unleash_test';
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
getDatabaseUrl,
|
|
};
|