Ok, today I finally solved this problem. the "default_application" in 
routes.py is case-sensitive. I named my application folder in a upper case 
and caused "missing" of default app then web2py goes for "welcome".

在 2011年11月6日星期日UTC+8下午9时28分27秒,Spring写道:
>
> Hi there, 
>
> I'm facing a problem with GAE deployment. GAE still routes to Welcome 
> rather than my app when hitting www.myapp.com. And because I skipped 
> the Welcome app in app.yaml, it gives "invalid request". Tried 
> manually to go to "www.myapp.com/myapp/default/index", still "invalid 
> request". Things seem to be fine when running the app locally with 
> both web2py and GAE launcher. I even tried to give a new version 
> number and re-deploy, but the same happened. 
>
> Contents of routes.py modified as follows: 
>
> default_application = 'go2chongqing'    # ordinarily set in base 
> routes.py 
> default_controller = 'default'  # ordinarily set in app-specific 
> routes.py 
> default_function = 'index'      # ordinarily set in app-specific 
> routes.py 
>
> routes_app = ((r'/(?P<app>go2chongqing|welcome|admin|app)\b.*', 
> r'\g<app>'), 
>               (r'(.*)', r'go2chongqing'), 
>               (r'/?(.*)', r'go2chongqing')) 
>
> routes_in and routes_out remain unchanged. 
> ================================================================= 
> Can anybody help on this. Thanks in advance. 
>
> Spring

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to