mirror of
https://github.com/fergalmoran/kidarr-server.git
synced 2025-12-22 09:17:51 +00:00
Remove
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,6 +34,7 @@ yarn-error.log*
|
||||
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
|
||||
.env
|
||||
.env*.local
|
||||
.env.production
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import "dotenv/config";
|
||||
|
||||
import type { Config } from "drizzle-kit";
|
||||
import { env } from "@/env";
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
"socket.io": "^4.7.4",
|
||||
"socket.io-client": "^4.7.4",
|
||||
"sonner": "^1.3.1",
|
||||
"supabase": "^1.136.3",
|
||||
"superjson": "^2.2.1",
|
||||
"tailwind-merge": "^2.2.0",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
@@ -7,9 +7,12 @@ echo Removing migrations
|
||||
rm -rf drizzle
|
||||
echo "Dropping db"
|
||||
|
||||
dropdb -f --if-exists kidarr
|
||||
echo "Creating db"
|
||||
createdb kidarr
|
||||
if $NODE_NEV ne "production"; then
|
||||
echo "Dropping production db"
|
||||
dropdb -f --if-exists kidarr
|
||||
echo "Creating production db"
|
||||
createdb kidarr
|
||||
fi
|
||||
|
||||
bun db:generate
|
||||
bun db:migrate
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import React from "react";
|
||||
import HeadersPrinter from "@/components/debug/headers-printer";
|
||||
import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
|
||||
// import HeadersPrinter from "@/components/debug/headers-printer";
|
||||
// import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
|
||||
|
||||
const DebugPage = () => {
|
||||
return (
|
||||
<div className="p-8">
|
||||
<Button variant="default">I am button</Button>
|
||||
<div className="flex flex-col space-y-2 px-2">
|
||||
<HeadersPrinter />
|
||||
<SecureDebugDetails />
|
||||
{/*<HeadersPrinter />*/}
|
||||
{/*<SecureDebugDetails />*/}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -9,6 +9,7 @@ const runMigrate = async () => {
|
||||
throw new Error("DATABASE_URL is not defined");
|
||||
}
|
||||
|
||||
console.log("Migrating", env.DATABASE_URL, process.env.NODE_ENV);
|
||||
const connection = postgres(env.DATABASE_URL, { max: 1 });
|
||||
|
||||
const db = drizzle(connection);
|
||||
|
||||
@@ -22,6 +22,13 @@
|
||||
"when": 1706464847221,
|
||||
"tag": "0002_abandoned_luckman",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 3,
|
||||
"version": "5",
|
||||
"when": 1706731530273,
|
||||
"tag": "0003_luxuriant_nightshade",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user