s
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
0df722d3bd
commit
7d0079c563
1 changed files with 7 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ void main() async {
|
||||||
// await Isar.initializeIsarCore(download: true);
|
// await Isar.initializeIsarCore(download: true);
|
||||||
final debugMode = Platform.environment['DEBUG'] == 'true' ||
|
final debugMode = Platform.environment['DEBUG'] == 'true' ||
|
||||||
Platform.environment['DEBUG'] == '1';
|
Platform.environment['DEBUG'] == '1';
|
||||||
|
|
||||||
isar = await IsarConnector().connect(
|
isar = await IsarConnector().connect(
|
||||||
dir: dir,
|
dir: dir,
|
||||||
name: 'db',
|
name: 'db',
|
||||||
|
|
@ -83,4 +84,10 @@ void main() async {
|
||||||
UpdateOnlineUsersTask(getIt.get<UserManager>()),
|
UpdateOnlineUsersTask(getIt.get<UserManager>()),
|
||||||
TasksSeederTask(),
|
TasksSeederTask(),
|
||||||
]).init();
|
]).init();
|
||||||
|
|
||||||
|
|
||||||
|
ProcessSignal.sigterm.watch().listen((signal) async {
|
||||||
|
await isar.close();
|
||||||
|
exit(0);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue