diff --git a/app/routes/login.tsx b/app/routes/login.tsx index 65a6f5a7e..c61981c81 100644 --- a/app/routes/login.tsx +++ b/app/routes/login.tsx @@ -7,8 +7,6 @@ import { json, redirect } from "@remix-run/node"; import { Form, Link, useActionData, useSearchParams } from "@remix-run/react"; import { useEffect, useRef } from "react"; -import { seed } from "prisma/seedScript"; -import { prisma } from "~/db.server"; import { verifyLogin } from "~/models/user.server"; import { createUserSession, getUserId } from "~/session.server"; import { safeRedirect, validateEmail } from "~/utils"; @@ -26,8 +24,6 @@ export const action = async ({ request }: ActionFunctionArgs) => { const redirectTo = safeRedirect(formData.get("redirectTo"), "/"); const remember = formData.get("remember"); - await seed(prisma); - if (!validateEmail(email)) { return json( { errors: { email: "Email is invalid", password: null } }, diff --git a/scripts/migrate.sh b/scripts/migrate.sh index 8f49d8b00..2bd89ab42 100755 --- a/scripts/migrate.sh +++ b/scripts/migrate.sh @@ -7,3 +7,4 @@ echo 10 >/proc/sys/vm/swappiness swapon /swapfile echo 1 >/proc/sys/vm/overcommit_memory npx prisma migrate deploy +npx prisma db seed \ No newline at end of file