Hi,
Does anyone know where exactly to locate the project.toml file in the Hello World application from this tutorial, and where to run the "gcloud run deploy --source ." command from? This is the tutorial I'm trying to follow. Quickstart: Build and deploy a Java Spring Boot web app to Google Cloud with Cloud Run | Cloud Run...
I get build errors involving "buildpack" and I think project.toml and the directory from which I run that command has to do with it.
Thanks
Hi @switalabt,
Welcome to Google Cloud Community!
If you're encountering build errors related to buildpacks, this might be due to missing or misconfigured files, such as the project.toml
, or incorrect directory context when running the deploy command.
For Cloud Buildpacks to correctly identify and apply its configurations, the project.toml
file must be located in the root directory of your application. This is the directory that typically contains your primary build configuration file (e.g., pom.xml for Maven or build.gradle for Gradle) and the main source code folders (e.g., src/main/java), in your case, the helloworld folder.
Also, you should run the "gcloud run deploy --source .
" command from the root directory of your application. This is the directory that contains your application source code and build files.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.