Generated with Hive: add sphinx authentication ui with qr code and polli#2984
Closed
Generated with Hive: add sphinx authentication ui with qr code and polli#2984
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…SQL user configuration
…ser configuration
…olving dependency and environment issues
…root database role
…tabase role for tests
…stgreSQL user configuration
…root role in PostgreSQL setup
… role exists for CI
… root role in PostgreSQL setup
…root role in test database
- Restore manual dev server startup with explicit environment variables - Revert playwright.config.ts to use reuseExistingServer: true - Add missing TOKEN_ENCRYPTION_KEY_ID environment variable - Split workflow into proper steps: start dev → wait → run tests Root cause: Environment variables weren't being passed correctly when relying on Playwright's webServer to start the dev server, causing PostgreSQL connection attempts with wrong credentials (user 'root' instead of 'hive_user').
The issue was that environment variables passed to a backgrounded process weren't being properly inherited by the Next.js dev server. Solution: Create a .env file that Next.js will read directly, ensuring DATABASE_URL and all other required variables are available to the server. This approach is more reliable than relying on environment variable inheritance through backgrounded shell processes.
The PostgreSQL health check was running pg_isready without a username, causing it to default to the system user 'root' (every 10 seconds), which doesn't exist in the database configured with 'hive_user'. This fix adds -U hive_user to the health check command.
pg_isready defaults to using the username as the database name. Since our user is 'hive_user' but database is 'hive_db', we need to explicitly specify -d hive_db in the health check command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generated with Hive: add sphinx authentication ui with qr code and polling