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 web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/a7ba6f1c-2c53-4f30-8197-9c0b51d3229d%40googlegroups.com.
# 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*.origThumbs.db.DS_Store./deposit./benchmark./build./dist./ssl./docs./logs./*.zip!apps/*apps/filemanagerapps/filemanager/*apps/todoapps/todo/*apps/examplesapps/examples/*apps/_dashboardapps/_dashboard/*apps/_scaffoldapps/_scaffold/*apps/_minimalapps/_minimal/*apps/_defaultapps/_default/*apps/_documentation/*apps/superheroesapps/superheroes/*apps/*/databases/README*pps/*/databases/*apps/*/uploads/*apps/*/*.py[oc]packages/deployment_tools/*deployment_tools/tests/*tests/README.mdtest-requirements.txtsource-context.jsonpassword.txtpy4web-start.pysetup.py
runtime: python37
# Handlers define how to route requests to your application.handlers:
- url: .* # This regex directs all routes to main.bottle script: auto
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_nameCheers.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.
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.
apps/filemanagerapps/filemanager/*apps/todoapps/todo/*apps/examplesapps/examples/*apps/_dashboardapps/_dashboard/*apps/_scaffoldapps/_scaffold/*apps/_minimalapps/_minimal/*apps/_defaultapps/_default/*apps/_documentation/*apps/superheroesapps/superheroes/*
runtime: python37entrypoint: gunicorn -b :8080 -w 2 main:app
# Handlers define how to route requests to your application.handlers:
- url: /.* secure: always redirect_http_response_code: 301 script: auto
# 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
# Only ignore the default app and the app we want to deployenv/*env/!apps/*
apps/todo
apps/todo/*apps/examplesapps/examples/*apps/_dashboardapps/_dashboard/*apps/_scaffoldapps/_scaffold/*apps/_minimalapps/_minimal/*
!apps/_default!apps/_default/*
!apps/myapp!apps/myapp/*apps/_documentation/*apps/superheroesapps/superheroes/*apps/myfeedapps/myfeed/*
apps/*/databases/README*pps/*/databases/*apps/*/uploads/*apps/*/*.py[oc]packages/deployment_tools/*deployment_tools/tests/*tests/README.mdtest-requirements.txtsource-context.jsonpassword.txtpy4web-start.pysetup.py
Makefile
from py4web import action, __version__from bottle import redirect #get redirect function from bottle
@action("index")@action.uses("index.html")def index(): redirect("/myapp") # The former code: return dict(version=__version__)
from py4web import action, __version__
import os
@action("index")@action.uses("index.html")def index():
src = "/_default" dst = "/myapp" os.symlink(src, dst) return dict(version=__version__)
Traceback (most recent call last): File "/home/jacinto/PROGRAMACION/py4web/py4web/core.py", line 554, in wrapper ret = func(*func_args, **func_kwargs) File "/home/jacinto/PROGRAMACION/py4web/py4web/core.py", line 515, in wrapper ret = func(*args, **kwargs) File "apps/_default/__init__.py", line 10, in index os.symlink(src, dst) PermissionError: [Errno 13] Permission denied: '/_default' -> '/myapp'
id | 48 | ||||
---|---|---|---|---|---|
uuid | 8b97b87a-7ec0-4158-bace-e414438f513a | ||||
app_name | _default | ||||
method | GET | ||||
path | / | ||||
timestamp | datetime.datetime(2020, 3, 23, 11, 48, 18) | ||||
client_ip | 127.0.0.1 | ||||
error | [Errno 13] Permission denied: '/_default' -> '/myapp' | ||||
snapshot |
|