File tree 4 files changed +33
-2
lines changed
4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This file specifies files that are *not* uploaded to Google Cloud
2
+ # using gcloud. It follows the same syntax as .gitignore, with the addition of
3
+ # "#!include" directives (which insert the entries of the given .gitignore-style
4
+ # file at that point).
5
+ #
6
+ # For more information, run:
7
+ # $ gcloud topic gcloudignore
8
+ #
9
+ .gcloudignore
10
+ # If you would like to upload your .git directory, .gitignore file or files
11
+ # from your .gitignore file, remove the corresponding line
12
+ # below:
13
+ .git
14
+ .gitignore
15
+
16
+ # Python pycache:
17
+ __pycache__/
18
+ # Ignored by the build system
19
+ /setup.cfg
Original file line number Diff line number Diff line change
1
+ runtime : python39
2
+ entrypoint : gunicorn -b :8080 main:app
3
+
4
+ env_variables :
5
+ DB_URL :
" postgresql://postgres:[email protected] :5432/postgres"
6
+ SECRET : " 3f4e1462c7bda198adf757f33f354e45672333c29613c645"
7
+
8
+ handlers :
9
+ - url : /.*
10
+ script : auto
Original file line number Diff line number Diff line change 5
5
6
6
app = FastAPI ()
7
7
8
-
9
8
origins = ["*" ]
10
9
11
10
app .add_middleware (
16
15
allow_headers = ["*" ],
17
16
)
18
17
18
+
19
19
@app .get ("/" )
20
20
async def root ():
21
21
return {"message" : "Hello World" }
Original file line number Diff line number Diff line change 1
1
python-dotenv
2
2
fastapi
3
+ uvicorn
4
+ gunicorn
3
5
fastapi-login
4
6
sqlalchemy
5
7
psycopg2-binary
6
- python-multipart
8
+ python-multipart
You can’t perform that action at this time.
0 commit comments