Working prototype
This commit is contained in:
1 parent
a1f6dd7b08
commit
5cd6f3c640
20 files changed
+2392
-151
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { existsSync, copyFileSync } from "node:fs";
|
||||
import { execFileSync } from "node:child_process";
|
||||
|
||||
if (!existsSync(".env")) {
|
||||
copyFileSync(".env.example", ".env");
|
||||
console.log("Создан .env из .env.example. Заполните LLM_API_KEY перед генерацией резюме.");
|
||||
} else {
|
||||
console.log(".env уже существует — оставлен без изменений.");
|
||||
}
|
||||
|
||||
execFileSync("npx", ["prisma", "generate"], { stdio: "inherit", shell: process.platform === "win32" });
|
||||
execFileSync("npx", ["prisma", "migrate", "deploy"], { stdio: "inherit", shell: process.platform === "win32" });
|
||||
Reference in new issue
Block a user