Failed pre-deploy run
carlostitao
HOBBYOP

2 months ago

I'm trying to execute this npx prisma generate && npx prisma migrate deploy as pre-deploy command to generate my database but it keep failing over and over whit this log Starting Container

Prisma schema loaded from prisma/schema.prisma

┌─────────────────────────────────────────────────────────┐

│ Update available 6.19.0 -> 7.2.0 │

│ │

│ This is a major update - please follow the guide at │

https://pris.ly/d/major-version-upgrade

│ │

│ Run the following to update │

│ npm i --save-dev prisma@latest │

│ npm i @prisma/client@latest │

└─────────────────────────────────────────────────────────┘

heavy_check_mark emoji Generated Prisma Client (v6.19.0) to ./node_modules/@prisma/client in 488ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate

npm warn config production Use --omit=dev instead.

|

Validation Error Count: 1

[Context: getConfig]

Prisma schema loaded from prisma/schema.prisma

Prisma CLI Version : 6.19.0

Error: Prisma schema validation - (get-config wasm)

Error code: P1012

error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres://.

--> prisma/schema.prisma:10

|

9 | provider = "postgresql"

10 | url = env("DATABASE_URL")

Stopping Container

My railway variable begins with postgresql:// so it doesnt make any sense to me how to fix this

Solved

1 Replies

itsrems
EMPLOYEE

2 months ago

Hi, your database url env starts with a \n. You'll want to remove that.


Status changed to Awaiting User Response Railway about 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


Loading...