diff --git a/bun.lockb b/bun.lockb index 4ad5bd1..02d889a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/sitio/package.json b/sitio/package.json index ee66782..74677bc 100644 --- a/sitio/package.json +++ b/sitio/package.json @@ -38,7 +38,6 @@ "better-sqlite3": "^9.2.2", "chart.js": "^4.4.1", "chartjs-adapter-dayjs-4": "^1.0.4", - "croner": "^8.0.0", "dayjs": "^1.11.10", "drizzle-orm": "^0.29.1" } diff --git a/sitio/src/hooks.server.ts b/sitio/src/hooks.server.ts deleted file mode 100644 index a7fc486..0000000 --- a/sitio/src/hooks.server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { spawn } from "child_process"; -import Cron from "croner"; - -if (process.env.NODE_ENV === "production") { - const job = Cron("15 3 * * *", () => { - runScraper(); - }); -} - -function runScraper() { - spawn("bun", ["/bin/scraper", "auto"], { stdio: "inherit" }); -}