search.accords-library.com/src/app.ts

12 lines
356 B
TypeScript
Raw Normal View History

2023-01-28 09:21:11 +00:00
import http from "http";
import { requestListener } from "./server";
import { synchronizeStrapiAndMeili } from "./syncho";
import * as dotenv from "dotenv";
dotenv.config();
await synchronizeStrapiAndMeili();
http.createServer(requestListener).listen(process.env.PORT, () => {
console.log(`Server started on port: ${process.env.PORT}`);
});