Answer the question
In order to leave comments, you need to log in
Flask App & google app engine not seeing files in Static folder?
in order to learn, I made a small Flask application with BLUEPRINT and a database (SQLITE)
The operation of the application on the local machine suits me.
Decided to upload it to the cloud. Like an application - then I started with GOOGLE APP ENGINE
By analogy with the placement of the "Hallowe World" application, I did the same. Since I have already written it and there is a lot of material there, I uploaded the entire folder to the cloud through the cloude editor, created my own folders and applauded the files.
I created a virtual environment and put my requests.txt there.
Locally, on port 8080, the application works fine.
I deployed the application - launched it - does not see the STATIC folder with styles and all sorts of images.
does not write new entries to the database (says that the type is read-only)
directory tree
./FlaskBlog
./FlaskBlog/static
./FlaskBlog/static/Stabilyty
./FlaskBlog/static/Input Type
./FlaskBlog/static/Input Quality
./FlaskBlog/static/profile_pics
./FlaskBlog/static/Rules
./FlaskBlog/errors
./FlaskBlog/errors/__pycache__
./FlaskBlog/posts
./FlaskBlog/posts/__pycache__
./FlaskBlog/users
./FlaskBlog/users/__pycache__
./FlaskBlog/templates
./FlaskBlog/__pycache__
./FlaskBlog/RPA
./FlaskBlog/ RPA/__pycache__
./FlaskBlog/main
./FlaskBlog/main/__pycache__
App.Yaml
entrypoint: "gunicorn -b :$PORT main:app"
handlers:
-
static_dir: static
url: static
-
script: auto
url: /.*
runtime: python37
runtime: python37
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question