Skip to content

Commit

Permalink
chore: netlify setting;
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuo committed Jun 23, 2024
1 parent f2cce48 commit cfc162c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion deploys/other/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ itsdangerous==2.0.1
Jinja2==3.0.1
MarkupSafe==2.0.1
Werkzeug==2.0.1
requests
requests
serverless-wsgi==1.7.8
6 changes: 6 additions & 0 deletions deploys/other/wsgi_handler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import json
from index import app
from serverless_wsgi import handle_request

def handler(event, context):
return handle_request(app, event, context)
11 changes: 8 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@

[build]
command = "pip install -r requirements.txt"
functions = "deploys/other"

[[redirects]]
from = "index.html"
to = "deploys/other/static/index.html"
from = "/index.html"
to = "/deploys/other/static/index.html"
status = 200

[functions]
directory = "deploys/other/"
directory = "deploys/other"

0 comments on commit cfc162c

Please sign in to comment.