backend:
http://175.41.168.31:3000/frontend:
http://175.41.168.31:4173/or
https://sea-salon.unbound.my.id/bash start.shif docker reproduce this error:
Datasource "db": PostgreSQL database "mydb", schema "public" at "localhost:6576"
Error: P1001: Can't reach database server at `localhost:6576`
Please make sure your database server is running at `localhost:6576`.use this command:
docker exec development-backend-1 npx prisma migrate dev --name prodinstall bun:
npm i -g buninstall package:
bun installcreate database postgresql:
docker run --rm --name dev-postgres -p 5432:5432 -e POSTGRES_PASSWORD=12345678 -d postgresuncomment line 2 and comment line 1 .env:
# DATABASE_URL="postgresql://salon:compfest@postgres:6576/prod?schema=public"
DATABASE_URL="postgresql://postgres:12345678@localhost:5432/mydb?schema=public"
generate prisma:
bunx prisma generatemigrate prisma:
bunx prisma migrate --name okstart:
bun run devstart frontend:
cd frontend
npm run devor
cd frontend
bun run dev