add uploader to vtuber creation
Some checks failed
ci / build (push) Failing after 1s
ci / Tests & Checks (push) Failing after 1s

This commit is contained in:
CJ_Clippy 2025-06-17 05:40:24 -08:00
parent 5d7920aa4e
commit 330e38db75
2 changed files with 27 additions and 2 deletions

View File

@ -77,4 +77,24 @@ If you have trouble installing sharp, try ignoring the system's installed libvip
Actually, better advice is to probably **remove libvips from the system**. This way, a compatible libvips is always pulled during `npm install`.
Annoyingly, it might be necessary to re-install sharp after every new npm package, even if said package is unrelated to sharp.
Annoyingly, it might be necessary to re-install sharp after every new npm package, even if said package is unrelated to sharp.
## Deployments
### Apply migrations
cd /opt/futureporn/services/our
npx @dotenvx/dotenvx run -f /usr/local/etc/futureporn/our/env -- npx prisma migrate deploy
### pgweb
https://github.com/sosedoff/pgweb/wiki/SSH-Gateway
ssh -i ~/.ssh/futureporn2025 -Ng -L 5000:localhost:5432 root@45.63.66.171
pgweb --url postgres://future_porn:REDACTED@localhost:5000/future_porn
### pgadmin
dotenvx run -f ./.env.production -- docker run -p 5050:80 --rm --init -it -e PGADMIN_DEFAULT_EMAIL -e PGADMIN_DEFAULT_PASSWORD -e PGADMIN_DISABLE_POSTFIX=1 dpage/pgadmin4

View File

@ -42,11 +42,16 @@ async function main() {
// Create Vtubers
const vtubers = await Promise.all(
['Alpha', 'Bravo', 'Charlie'].map((name) =>
['Alpha', 'Bravo', 'Charlie'].map((name, i) =>
prisma.vtuber.create({
data: {
displayName: name,
slug: name.toLowerCase(),
uploader: {
connect: {
id: users[i % users.length].id, // re-use existing seeded users
},
},
},
})
)