Download a simple Web2py app on GAE

I created a web2py application that is very lightweight, with the goal of ultimately getting the application to support JSON-RPC calls and possibly a few other things.

I found several online tutorials that (on winxp) made me get the source code for web2py and extract it on top of the compiled program. At the top level, I edited app.yaml with my program name and used SDE GAE to download the program. Everything seems to be loaded, including sample applications. I think it includes the whole gluon directory and other files with py files. Is there a way to configure web2py just to download my application and what is minimally necessary to run it?

+4
source share
1 answer

The app.yaml that comes with web2py has a skip_files section, and it should contain, in particular, the following line:

(applications / (admin | examples) /.*) |

You can change it to

(applications / (admins | examples | welcome) /.*) |

So the welcome application is not deployed. You add more applications that you have and do not want to deploy them.

At a minimum you need:

  • web2py / gaehandler.py
  • web2py / gluon / * (and subfolders, this is web2py)
  • web2py / applications / theoneappyouwanttodeploy / * (and subfolders)
+7
source

Source: https://habr.com/ru/post/1333944/


All Articles