Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ai-chatbot does not include instructions for DB migration on local deployments #731

Open
b8zhong opened this issue Jan 27, 2025 · 4 comments

Comments

@b8zhong
Copy link

b8zhong commented Jan 27, 2025

Database Migration Missing in Localhost Setup

Description

The current README lacks a crucial step for database initialization, causing authentication failures on first setup when running locally.

A similar issue, but was closed without PR change to documentation:
#450

Current Behavior

Database-related errors when trying to register/login:

Image

Failed to get user from database
POST /register 200

Database migrations need to be run before the application can work properly.

pnpm tsx lib/db/migrate.ts && pnpm run build
@b8zhong b8zhong changed the title ai-chatbot does not depl ai-chatbot does not include instructions for DB migration on local deployments Jan 27, 2025
@kulterryan
Copy link

Did you tried running db:migrate?

@ilses1
Copy link

ilses1 commented Feb 26, 2025

I encountered the same problem, Failed to get user from database

@anurag923
Copy link

Hey everyone,

After completing the setup, I ran the application, and the sign-in page opened as expected. However, when I try to create a new account, I get an error saying, "Failed to create an account." Any ideas on what might be causing this?

@tobiasbueschel
Copy link

Hi all 👋 there are already 3 existing PRs that are addressing this issue:

@jeremyphilemon any chance we could get one of these PRs merged so that we can close this issue and make it easier for everyone to spin up the project locally?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants