0
votes

According to the docs found here:

https://cloud.google.com/appengine/docs/standard/php7/runtime#application_startup

My app, is able to serve up index.php, without defining any handlers in my app.yaml file, which it does. Great! However, that same app.yaml file fails to serve up index in my local environment (dev_appserver.py) That seems less than ideal...

The path to the file is public/index.php

Here's the error I see in my local when I go with the very same app.yaml that works perfectly in production:

The url "/" does not match any handlers.

1

1 Answers

0
votes

The dev_appserver.py only works with the first generation App Engine runtimes.

As you can see on the documentation, to test locally your PHP 7 app, you have to use the development tools that you usually use.

On this thread from the Google’s Public Issue Tracker there is a similar issue, and there is posted a solution for locally test PHP 7 apps. Basically, you have to set up a front controller on a web server locally. You can do it following this tutorial, for example.