mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: Unleash bin should allow databaseUrl to be defined in env
This was a regreission introduced in b2ce6f7a48
This commit is contained in:
parent
19e7b34812
commit
6d3f41bc3b
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 3.2.14
|
||||||
|
|
||||||
|
- fix: Unleash bin should allow databaseUrl to be defined in env.
|
||||||
|
|
||||||
## 3.2.13
|
## 3.2.13
|
||||||
|
|
||||||
- feat: add option and functionality that allows a user to hook into feature mutations (#457)
|
- feat: add option and functionality that allows a user to hook into feature mutations (#457)
|
||||||
|
@ -36,7 +36,7 @@ const argv = require('yargs')
|
|||||||
demand: false,
|
demand: false,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
})
|
})
|
||||||
.check(args => args.databaseUrl || args.databaseUrlFile)
|
.check(args => !!(args.databaseUrl || args.databaseUrlFile))
|
||||||
.option('databaseSchema', {
|
.option('databaseSchema', {
|
||||||
alias: 's',
|
alias: 's',
|
||||||
describe: 'The database schema to use',
|
describe: 'The database schema to use',
|
||||||
@ -46,7 +46,7 @@ const argv = require('yargs')
|
|||||||
}).argv;
|
}).argv;
|
||||||
|
|
||||||
if (argv.databaseUrlFile) {
|
if (argv.databaseUrlFile) {
|
||||||
argv.databaseUrl = fs.readFileSync(process.env.DATABASE_URL_FILE, 'utf8');
|
argv.databaseUrl = fs.readFileSync(argv.databaseUrlFile, 'utf8');
|
||||||
delete argv.databaseUrlFile;
|
delete argv.databaseUrlFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user