S
S
skyisover2020-07-02 20:21:31
Google Cloud Platform
skyisover, 2020-07-02 20:21:31

How to setup app.yaml file for static site on google cloud appengine?

I'm trying to run a static site on the google cloud platform
. To do this, you need to match the url and static files that will be loaded in the app.yaml file
Standard file:

runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /
  static_files: www/index.html
  upload: www/index.html 

- url: /(.*)
  static_files: www/\1
  upload: www/(.*)


that is, if the user accesses the URL / then he will see the file www/index.html

Please tell me how to make it so that when accessing any URL, the file www/any URL/index.html is displayed
handlers:
- url: /{любой урл}/
  static_files: www/{любой урл}/index.html
  upload: www/{любой урл}/index.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
skyisover, 2020-07-03
@skyisover

Already found the solution
https://stackoverflow.com/questions/54616748/prope...
Thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question