404 on live Google App Engine, while working on local SDK server

前端 未结 2 399
一向
一向 2021-01-28 19:19

I have deployed several PHP apps on GAE standard environment, all working fine.

Now I\'m deploying a new app, which on the local server provided by the gcloud

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-28 19:28

    After several hours of testing, I finally realized what the problem was.

    In GAE when declaring a certain path static, it is then interpreted as a non-code path. All files within that path are therefore not accessible by the scripts running on the PHP environment with require or include and they are not shown in the deployed code debugger.

    For this reason, I have placed all static files in a sub-folder (www), and non static files to be required by PHP scripts under another subfolder.

提交回复
热议问题