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
|
# 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
|
||||||
.env*.local
|
.env*.local
|
||||||
|
.env.production
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import "dotenv/config";
|
||||||
|
|
||||||
import type { Config } from "drizzle-kit";
|
import type { Config } from "drizzle-kit";
|
||||||
import { env } from "@/env";
|
import { env } from "@/env";
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
"socket.io": "^4.7.4",
|
"socket.io": "^4.7.4",
|
||||||
"socket.io-client": "^4.7.4",
|
"socket.io-client": "^4.7.4",
|
||||||
"sonner": "^1.3.1",
|
"sonner": "^1.3.1",
|
||||||
|
"supabase": "^1.136.3",
|
||||||
"superjson": "^2.2.1",
|
"superjson": "^2.2.1",
|
||||||
"tailwind-merge": "^2.2.0",
|
"tailwind-merge": "^2.2.0",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
|
|||||||
@@ -7,9 +7,12 @@ echo Removing migrations
|
|||||||
rm -rf drizzle
|
rm -rf drizzle
|
||||||
echo "Dropping db"
|
echo "Dropping db"
|
||||||
|
|
||||||
dropdb -f --if-exists kidarr
|
if $NODE_NEV ne "production"; then
|
||||||
echo "Creating db"
|
echo "Dropping production db"
|
||||||
createdb kidarr
|
dropdb -f --if-exists kidarr
|
||||||
|
echo "Creating production db"
|
||||||
|
createdb kidarr
|
||||||
|
fi
|
||||||
|
|
||||||
bun db:generate
|
bun db:generate
|
||||||
bun db:migrate
|
bun db:migrate
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import HeadersPrinter from "@/components/debug/headers-printer";
|
// import HeadersPrinter from "@/components/debug/headers-printer";
|
||||||
import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
|
// import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
|
||||||
|
|
||||||
const DebugPage = () => {
|
const DebugPage = () => {
|
||||||
return (
|
return (
|
||||||
<div className="p-8">
|
<div className="p-8">
|
||||||
<Button variant="default">I am button</Button>
|
<Button variant="default">I am button</Button>
|
||||||
<div className="flex flex-col space-y-2 px-2">
|
<div className="flex flex-col space-y-2 px-2">
|
||||||
<HeadersPrinter />
|
{/*<HeadersPrinter />*/}
|
||||||
<SecureDebugDetails />
|
{/*<SecureDebugDetails />*/}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const runMigrate = async () => {
|
|||||||
throw new Error("DATABASE_URL is not defined");
|
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 connection = postgres(env.DATABASE_URL, { max: 1 });
|
||||||
|
|
||||||
const db = drizzle(connection);
|
const db = drizzle(connection);
|
||||||
|
|||||||
@@ -22,6 +22,13 @@
|
|||||||
"when": 1706464847221,
|
"when": 1706464847221,
|
||||||
"tag": "0002_abandoned_luckman",
|
"tag": "0002_abandoned_luckman",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 3,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1706731530273,
|
||||||
|
"tag": "0003_luxuriant_nightshade",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user