How to host React and PHP application on Google App Engine?

128 views
Skip to first unread message

Smith Nandagawali

unread,
May 1, 2021, 9:11:38 AM5/1/21
to Google App Engine
I want to host an application google cloud that is built in React and the backend is in PHP. I want to know how to do it? Is there any way to do that? Can we write runtime: node and PHP both on the app.YAML file?

Alexis (Cloud Platform Support)

unread,
May 5, 2021, 11:54:37 AM5/5/21
to Google App Engine
Hello,

Since React is not supported by Google, you may not find official Google documentation about it. However, based on other forum comments, I suspect you need to align the YAML file and build folder to be in the same path. For example, step 5 of this[1] tutorial mentions to create the YAML inside the build folder, and add some wildcard handlers (more about handlers here[2]). After this is done, deploying should work and align all resources. In addition, these[3][4] articles mention the same exact steps, with the latter as an automated script instead.

I hope you find this useful.

Sincerely,

Alexis
Google Cloud Platform Support

Reply all
Reply to author
Forward
0 new messages