Thanks, perfect!! It's better.
I have some apps deployed in GAE, with web2py pyhton 2.7. I want to migrate
them to python 3.7, but cannot deploy web2py python 3.7 on GAE. I wonder if
stable version of py4web will take too long or if it is better to try to
find out how to deploy web2py python 3.
There are two problems here:
1) you cannot symlink in an action because it must be done once and only
once.
2) You cannot have paths like /_default because they are absolute paths
Assuming this is a linux or OSX machine you should do from the shell
$ rm -rf apps/_default
$ ln -s apps/myapp apps/
Yes, but I get an error with symlink in __init.py__ of _default:
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__)
Error Ticket: [Errno
This is a good solution. One trick is to symlink _default to myapp
On Monday, 16 March 2020 02:17:56 UTC-7, Jacinto Parga wrote:
>
> Finally solved.
>
>1. I add an entrypoint to the app.yaml . The app runs fine:
>runtime: python37
>entrypoint: gunicorn -b :8080 -w 2 main:app
>
>
Finally solved.
1. I add an entrypoint to the app.yaml . The app runs fine:
runtime: python37
entrypoint: gunicorn -b :8080 -w 2 main:app
# Handlers define how to route requests to your application.
handlers:
- url: /.*
secure: always
redirect_http_response
5 matches
Mail list logo