Nidhal Abidi
Nidhal Abidi

Reputation: 115

How to add custom deploy script in Google App Engine?

I would like to deploy a php application to GAE. During the deployment though, I need to run custom scripts (Or add few commands). Is there a way to define scripts in app.yaml?

Upvotes: 0

Views: 415

Answers (1)

bhito
bhito

Reputation: 2673

If you need to run custom scripts or commands before deploying to GAE, then the best approach would be using a custom runtime.

You will have to build a Dockerfile with a PHP base image and then run all your needed steps there. With this approach you will also be able to change the default entrypoint for the docker container.

The related documentation can be found in this link.

Google also offers several images, included a PHP one.

Upvotes: 1

Related Questions