GoogleCloudPlatform/buildpacks

gcloud app deploy - Issue with a post install script in my package.json

glorio-loopstudio opened this issue · 1 comments

Describe the bug
I am actually trying to deploy my nest.js app to GC app engine.
When I run the following command:

gcloud app deploy

The following error come to me:
Captura de pantalla 2023-12-08 a la(s) 18 27 48

The issue seems to be in my package.json because when I comment the following script, the command to deploy the app works without any problem. Here is my script that is causing these to fails:

"postinstall": "git config core.hooksPath ./git-hooks"

App Engine is only given the source code. It would not know that it's in a git directory or not.