borrar cron sitio

This commit is contained in:
Cat /dev/Nulo 2024-01-11 17:21:14 -03:00
parent 4b211c89af
commit 91397a31d2
3 changed files with 0 additions and 13 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -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"
}

View file

@ -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" });
}