Is is possible to run a script on deploy such as "post-install-cmd" on GAE Standard PHP7.2/7.3?

23 views
Skip to first unread message

Mihai Scurtu

unread,
Sep 17, 2019, 11:34:21 AM9/17/19
to Google App Engine
Hello,

I tried adding a script in either "post-install-cmd", "post-update-cmd" or "post-autoload-dump" and none of them seemed to execute.

Is there any way to see more detailed deployment logs? I tried --verbosity="debug" but still couldn't see any calls to composer install or anything like that.

I have seen other articles/topics suggesting "post-install-cmd" works on GAE flex apps, do I just have to migrate to that?

Thanks

George (Cloud Platform Support)

unread,
Sep 17, 2019, 2:21:23 PM9/17/19
to Google App Engine
Hello Mihai, 

In the App Engine Standard Environment, file system is read-only, except for /tmp. If your script attempts to write to the file system, it would fail. It depends on what your script is meant to do.

You are right about Flexible Environment, there is information on the Web on using this command, for instance Run Symfony on App Engine flexible environment. For detailed logs, you may check Stackdriver logging in Cloud Console. 
Reply all
Reply to author
Forward
0 new messages