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

Migration in error because of DATABASE_URL is missing #61

Open
aauer-powens opened this issue Jan 15, 2025 · 1 comment
Open

Migration in error because of DATABASE_URL is missing #61

aauer-powens opened this issue Jan 15, 2025 · 1 comment

Comments

@aauer-powens
Copy link

Hello, I'm trying to deploy jitsu new version as I was an active user of the Classic one.
I have a clickhouse configured in local and want to connect jitsu to it. But while deploying it i'm facing an issue with the migration pods:

Defaulted container "jitsu" out of: jitsu, wait-for-tokens (init), wait-for-postgresql (init)
Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database

Error: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:20
   | 
19 |   provider = "postgresql"
20 |   url      = env("DATABASE_URL")
   | 

Validation Error Count: 1
[Context: getConfig]

Prisma CLI Version : 6.1.0

Do you have any informations regarding it ?

@echozio
Copy link
Contributor

echozio commented Jan 15, 2025

Hi, what values are you using? If you're setting up your own postgres database you'll have to provide a URL through the config.databaseUrl or config.databaseUrlFrom values.

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

2 participants