Yes. I've created a new application that is the only one I want to serve. In that case how can I do in py4web the same thing I do with routes.py in web2py
Thanks El lunes, 10 de febrero de 2020, 7:07:02 (UTC+1), Massimo Di Pierro escribió: > > Your .gitcloudignore appears to be ignoring all of the apps: > > apps/filemanager > apps/filemanager/* > apps/todo > apps/todo/* > apps/examples > apps/examples/* > apps/_dashboard > apps/_dashboard/* > apps/_scaffold > apps/_scaffold/* > apps/_minimal > apps/_minimal/* > apps/_default > apps/_default/* > apps/_documentation/* > apps/superheroes > apps/superheroes/* > > > > On Wednesday, 5 February 2020 12:38:56 UTC-8, Jacinto Parga wrote: >> >> No, thanks. >> >> Finally it was a problem with the .gcloudignore >> >> I had to get rid off every app but the one I wanted to deploy and the >> other unneccesary files to the GAE. The only thing left is that I need to >> add the name of the application to route the main domain to the proper app. >> >> This is my .gcloudignore >> # This file specifies files that are *not* uploaded to Google Cloud >> Platform >> # using gcloud. It follows the same syntax as .gitignore, with the >> addition of >> # "#!include" directives (which insert the entries of the given >> .gitignore-style >> # file at that point). >> # >> # For more information, run: >> # $ gcloud topic gcloudignore >> # >> .gcloudignore >> # If you would like to upload your .git directory, .gitignore file or >> files >> # from your .gitignore file, remove the corresponding line >> # below: >> .git >> .gitignore >> >> #Ojo no se puede quitar requirements.txt >> >> # Python pycache: >> __pycache__/ >> # Ignored by the build system >> /setup.cfg >> >> .travis.yml >> *.pyc >> *.pyo >> *~ >> #* >> *.1 >> *.bak >> *.bak2 >> *.svn >> *.w2p >> *.class >> *.rej >> *.orig >> Thumbs.db >> .DS_Store >> ./deposit >> ./benchmark >> ./build >> ./dist >> ./ssl >> ./docs >> ./logs >> ./*.zip >> !apps/* >> apps/filemanager >> apps/filemanager/* >> apps/todo >> apps/todo/* >> apps/examples >> apps/examples/* >> apps/_dashboard >> apps/_dashboard/* >> apps/_scaffold >> apps/_scaffold/* >> apps/_minimal >> apps/_minimal/* >> apps/_default >> apps/_default/* >> apps/_documentation/* >> apps/superheroes >> apps/superheroes/* >> apps/*/databases/README* >> pps/*/databases/* >> apps/*/uploads/* >> apps/*/*.py[oc] >> packages/ >> deployment_tools/* >> deployment_tools/ >> tests/* >> tests/ >> README.md >> test-requirements.txt >> source-context.json >> password.txt >> py4web-start.py >> setup.py >> >> >> And I'm using the default app.yaml may be this is the problem >> >> runtime: python37 >> >> >> # Handlers define how to route requests to your application. >> handlers: >> >> - url: .* # This regex directs all routes to main.bottle >> script: auto >> >> So I had to write the name of the application in the navigation bar: >> >> https://myapplication.appspot.com/*aplicationname* >> >> In other case I get a not found page. >> >> And it goes very very slow, it is only a login page. >> >> Some help? >> >> >> >> El martes, 4 de febrero de 2020, 20:09:59 (UTC+1), Christian Varas >> escribió: >>> >>> Hi I haven’t tried GAE but maybe is the controller. >>> >>> Are you using the decorator ’action()’ to expose the function ?. >>> >>> Ex: >>> @action('some_name') >>> def some_function(): >>> >>> return locals() >>> >>> Then you acces like http://IP/your_app/some_name >>> >>> Cheers. >>> Chris. >>> >>> El El mar, 4 de feb. de 2020 a la(s) 15:46, Jacinto Parga < >>> jpa...@gmail.com> escribió: >>> >>>> I cannot properly deploy a simple py4web app in GAE. I think it's just >>>> a .gcloudignore or a app.yaml configuration issue. The only thing I've got >>>> is a not found page. >>>> >>>> [image: minimal-py4web.png] >>>> >>>> Some help about how to route the right app in the google app engine? >>>> >>>> Thanks >>>> >>>> >>>> >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> 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 web...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/web2py/a7ba6f1c-2c53-4f30-8197-9c0b51d3229d%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/web2py/a7ba6f1c-2c53-4f30-8197-9c0b51d3229d%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2c5011d7-025f-4027-b5a0-a0cec1e83588%40googlegroups.com.