mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-09 13:06:45 +03:00
chore: switch to bun package manager
This commit is contained in:
@@ -19,38 +19,38 @@ This is a consolidated database management tool that handles all database-relate
|
||||
You can execute the database management tool using your package manager with various commands:
|
||||
|
||||
```bash
|
||||
# Checks database status (default action if no command is specified, equivalent to 'pnpm check-db')
|
||||
pnpm manage-db
|
||||
# Checks database status (default action if no command is specified, equivalent to 'bun run check-db')
|
||||
bun run manage-db
|
||||
|
||||
# Check database status
|
||||
pnpm check-db
|
||||
bun run check-db
|
||||
|
||||
# Initialize the database (only if it doesn't exist)
|
||||
pnpm init-db
|
||||
bun run init-db
|
||||
|
||||
# Fix database location issues
|
||||
pnpm fix-db
|
||||
bun run fix-db
|
||||
|
||||
# Automatic check, fix, and initialize if needed
|
||||
pnpm db-auto
|
||||
bun run db-auto
|
||||
|
||||
# Reset all users (for testing signup flow)
|
||||
pnpm reset-users
|
||||
bun run reset-users
|
||||
|
||||
# Update the database schema to the latest version
|
||||
pnpm update-schema
|
||||
bun run update-schema
|
||||
|
||||
# Remove database files completely
|
||||
pnpm cleanup-db
|
||||
bun run cleanup-db
|
||||
|
||||
# Complete setup (install dependencies and initialize database)
|
||||
pnpm setup
|
||||
bun run setup
|
||||
|
||||
# Start development server with a fresh database
|
||||
pnpm dev:clean
|
||||
bun run dev:clean
|
||||
|
||||
# Start production server with a fresh database
|
||||
pnpm start:fresh
|
||||
bun run start:fresh
|
||||
```
|
||||
|
||||
## Database File Location
|
||||
|
||||
Reference in New Issue
Block a user