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