aboutsummaryrefslogtreecommitdiff
path: root/src/api/scripts/overwriteConfig.js
blob: 05a1b73d80bad5040afc65ba68639764997c5e16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require('dotenv').config();

const Util = require('../utils/Util');

const start = async () => {
	try {
		await Util.writeConfigToDb(Util.getEnvironmentDefaults());
		console.log('Configuration overwriten, you can now start Hostess');
		process.exit(0);
	} catch (error) {
		console.error(error);
	}
};

start();