Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Trouble deploying to GCP

default discord avatar
tilelast year
1

Hey,


I'm running into some issues deploying Payload to GCP. So far I have set up Cloud Build and Cloud Run and used a Dockerfile to create a container for Payload. I've run the container locally and it works perfectly fine, however when I deploy the same Dockerfile to GCP I get



Error: cannot find Payload config. Please create a configuration file located at the root of your current working directory called "payload.config.js" or "payload.config.ts"

My payload.config.ts is under /src/payload.config.ts (I'm using the starter template from create-payload-app)


I'm confused why this would run in a local container but not on GCP?



Sorry if this is too GCP-specific but I believe the error stems from payload so maybe someone can help

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.