开发者

Uploading a simple web2py app to GAE

I created a web2py app that is extremely light, with the goal of eventually making the app support JSON-RPC calls, and maybe a few other things.

I found some tutorial online that (on winxp) had 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 the GAE SDK to upload the progr开发者_JAVA技巧am. It looks like that uploaded everything including example applications. I think it's including a whole gluon directory, and other dir's full of py files. Is there a way to setup web2py to only upload my application, and what's minimally required to run it?


The app.yaml that comes with web2py includes a section skip_files and it should contain, among others, this line:

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

You can change it to

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

So that welcome app is not deployed. You add more apps that you may have and do not want deployed.

At minimum you need:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜