Configuring app.yaml to use PHP (5.5) and Python (2.7) in the same project

44 views
Skip to first unread message

Michael Dorfman

unread,
Nov 1, 2016, 3:47:58 PM11/1/16
to Google App Engine
I have experience with configuring an app.yaml file for a php app, however I was hoping to add some python scripts into my app.  What type of setup in the app.yaml file is required to do this?  I know the runtime variable I want for python (python27) and php (php55), but I'm not sure if I can declare two runtimes in one app.yaml file.

Sorry - I'm a bit new to this!

Mike

Alex Martelli

unread,
Nov 1, 2016, 3:55:20 PM11/1/16
to google-a...@googlegroups.com
To use multiple languages in an App Engine app, you must deploy them as separate services (once known as modules), each with its own .yaml configuration file. app.yaml configures the default service, which doesn't get named; each other .yaml configures a separate service and is typically named, say, `foo.yaml`, with a stanza:

module:
    foo

See https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine for an overview of App Engine (from a Python point of view) starting with services (AKA modules).


Alex


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c91a687b-f857-4ed6-8a8e-dbe85e896818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Dorfman

unread,
Nov 3, 2016, 10:32:36 AM11/3/16
to Google App Engine
Thanks!!  This is exactly the hint I needed to get my project working.  I appreciate the help!


On Tuesday, November 1, 2016 at 3:55:20 PM UTC-4, Alex Martelli wrote:
To use multiple languages in an App Engine app, you must deploy them as separate services (once known as modules), each with its own .yaml configuration file. app.yaml configures the default service, which doesn't get named; each other .yaml configures a separate service and is typically named, say, `foo.yaml`, with a stanza:

module:
    foo

See https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine for an overview of App Engine (from a Python point of view) starting with services (AKA modules).


Alex

On Tue, Nov 1, 2016 at 12:40 PM, Michael Dorfman <mdor...@gmail.com> wrote:
I have experience with configuring an app.yaml file for a php app, however I was hoping to add some python scripts into my app.  What type of setup in the app.yaml file is required to do this?  I know the runtime variable I want for python (python27) and php (php55), but I'm not sure if I can declare two runtimes in one app.yaml file.

Sorry - I'm a bit new to this!

Mike

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages