mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-16 20:46:07 +01:00
13 lines
251 B
TypeScript
13 lines
251 B
TypeScript
import { startServer } from "./server";
|
|
import { prisma } from "./prisma";
|
|
|
|
startServer()
|
|
.then(async () => {
|
|
await prisma.$connect();
|
|
})
|
|
.catch(async (e) => {
|
|
console.error(e);
|
|
await prisma.$disconnect();
|
|
process.exit(1);
|
|
});
|