mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix replace value await
This commit is contained in:
parent
e370dd118d
commit
2a4b8b39fa
@ -1,6 +1,5 @@
|
||||
// This script merges config.env.tpl to config.env
|
||||
|
||||
import logger from 'CommonServer/Utils/Logger';
|
||||
import fs from 'fs';
|
||||
|
||||
const init: Function = (): void => {
|
||||
@ -40,6 +39,4 @@ const init: Function = (): void => {
|
||||
fs.writeFileSync('./config.env', linesInEnv.join('\n'));
|
||||
};
|
||||
|
||||
init().catch((err: Error) => {
|
||||
logger.error(err);
|
||||
});
|
||||
await init();
|
||||
|
@ -1,6 +1,5 @@
|
||||
// This script merges config.env.tpl to config.env
|
||||
|
||||
import logger from 'CommonServer/Utils/Logger';
|
||||
import fs from 'fs';
|
||||
|
||||
const init: Function = (): void => {
|
||||
@ -51,6 +50,4 @@ const init: Function = (): void => {
|
||||
fs.writeFileSync('./config.env', linesToRender.join('\n'));
|
||||
};
|
||||
|
||||
init().catch((err: Error) => {
|
||||
logger.error(err);
|
||||
});
|
||||
await init();
|
||||
|
Loading…
Reference in New Issue
Block a user