File tree 6 files changed +47
-14
lines changed
6 files changed +47
-14
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - master
5
+ workflow_dispatch :
6
+ # This allows the workflow to be manually triggered
7
+
8
+ name : Deploy master branch
9
+
10
+ jobs :
11
+ deploy :
12
+ name : deploy
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ # Deployment of your project
19
+ - name : serverless deploy
20
+
21
+ with :
22
+ command : deploy
23
+ args : -v
24
+ env :
25
+ # To link with your Serverless Framework account, equivalent to login
26
+ SERVERLESS_ACCESS_KEY : ${{ secrets.SERVERLESS_ACCESS_KEY }}
27
+ # The AWS Credentials
28
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
29
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ def create_application():
21
21
if load_sql_project == True :
22
22
print ("SQL_PROJECT is enabled" )
23
23
# Include additional routers if LOAD_SQL_PROJECT is enabled
24
- from fastapi_project .api .v1 import user
25
- application .include_router (user .router )
24
+ # from fastapi_project.api.v1 import user
25
+ # application.include_router(user.router)
26
26
27
27
# Add CORS middleware
28
28
# In production, replace the "*" with the actual frontend URL
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ from mangum import Mangum
2
+ from fastapi_project .main import app
3
+
4
+ handler = Mangum (app )
5
+
6
+
Original file line number Diff line number Diff line change 1
- fastapi
2
1
python-dotenv
3
2
sqlalchemy
4
3
psycopg2-binary
4
+ fastapi
5
+ uvicorn
5
6
mangum
Original file line number Diff line number Diff line change 1
- org : kintaro
2
- app : demo-app-api
3
- service : demo-app-api
1
+ org : code4mk
2
+ app : demo-app-api-fastapi
3
+ service : demo-app-api-fastapi
4
4
5
5
frameworkVersion : ' 3'
6
6
7
7
plugins :
8
8
- serverless-python-requirements
9
+ - serverless-wsgi
9
10
provider :
10
11
name : aws
11
- runtime : python3.9
12
- region : us-west-2
12
+ runtime : python3.11
13
+ region : us-east-1
13
14
14
15
functions :
15
16
demo_app_fastapi :
16
- handler : lambda_handler .handler
17
+ handler : lamda_handler .handler
17
18
events :
18
19
- http :
19
20
path : /{proxy+}
20
21
method : any
21
-
22
+
You can’t perform that action at this time.
0 commit comments