Skip to content

Commit 31d2c87

Browse files
authoredOct 4, 2022
chore: Rename and add files for Vercel support (#33)
1 parent 9077826 commit 31d2c87

File tree

10 files changed

+12
-3
lines changed

10 files changed

+12
-3
lines changed
 

Diff for: ‎.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,7 @@ dmypy.json
127127
.pyre/
128128

129129
# VS Code Config
130-
.vscode/
130+
.vscode/
131+
132+
# Vercel Hosting
133+
.vercel

Diff for: ‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pip install feedparser
127127
### Running the Flask server
128128

129129
```bash
130-
gunicorn web.app:app
130+
gunicorn api.index:app
131131
```
132132

133133
### Running the action Python part of the workflow locally

Diff for: ‎web/app.py renamed to ‎api/index.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: ‎web/utils.py renamed to ‎api/utils.py

File renamed without changes.

Diff for: ‎web/validate.py renamed to ‎api/validate.py

File renamed without changes.

Diff for: ‎requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Flask>=2.2.2
2+
gunicorn>=20.1.0
3+
orjson>=3.8.0

Diff for: ‎tests/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
from datetime import datetime, timedelta
33

4-
from web.utils import (
4+
from api.utils import (
55
estimate_duration_width,
66
fetch_views,
77
format_relative_time,

Diff for: ‎vercel.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rewrites": [{ "source": "/(.*)", "destination": "/api/index" }]
3+
}

0 commit comments

Comments
 (0)
Please sign in to comment.