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

13 lines
350 B
TypeScript
Raw Normal View History

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