I'm able to deploy php application in google cloud by configuring app.yaml for Standard and Flexible environments separately.
'app.yaml' For Standard Environment:
runtime: php55
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.php
- url: /fileUpload.php
script: fileUpload.php
'app.yaml' For Flexible Environment:
runtime: php55
env: flex # flexible env
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.php
- url: /fileUpload.php
script: fileUpload.php
Now i want to use both environments in single application.
1. Standard environment for the URL of helloworld.php
2. Flexible environment for the URL of fileUpload.php
so please suggest me the structure of this application.
Thanks in Advance
I tried with below structure but it's not working..
|-dispatch.yaml
|-standard
|-app.yaml
|-helloworld.php
|-flexible
|-app.yaml
|-fileUpload.php
dispatch.yaml code:
dispatch:
- url: "*/fileupload/*"
service: flex-module
- url: "/.*"
service: default
How to utilize both standard & flexible environments within a single application?
Example:
Domain: example.com
if we access url 'example.com/' or 'example.com/helloworld.php' : then it will use the standard environment.
if we access url 'example.com/fileupload.php' : then it will use the flexible environment.
is it possible, to process above two conditions?