Compare commits
No commits in common. "main" and "1.0.2" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
.venv
|
.venv
|
||||||
__pycache__/
|
__pycache__/
|
||||||
.vscode
|
.vscode
|
||||||
.vercel
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM python:alpine
|
FROM python
|
||||||
|
|
||||||
WORKDIR /srv
|
WORKDIR /srv
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Simple docker deployment
|
|||||||
docker build . -t publite_backend
|
docker build . -t publite_backend
|
||||||
|
|
||||||
# run it with docker
|
# run it with docker
|
||||||
docker run -p <port>:8081 publite_backend
|
docker run -p <port>:80 publite_backend
|
||||||
```
|
```
|
||||||
|
|
||||||
Dokku deployment with image from Docker Hub
|
Dokku deployment with image from Docker Hub
|
||||||
|
@ -115,7 +115,7 @@ def get_author(author: Element) -> str:
|
|||||||
"last-name",
|
"last-name",
|
||||||
):
|
):
|
||||||
tag = author.find("./" + tag_name, namespaces)
|
tag = author.find("./" + tag_name, namespaces)
|
||||||
if tag is not None and tag.text is not None:
|
if tag is not None:
|
||||||
res.append(tag.text)
|
res.append(tag.text)
|
||||||
if len(res) == 0:
|
if len(res) == 0:
|
||||||
res = author.find("./nickname", namespaces).text
|
res = author.find("./nickname", namespaces).text
|
||||||
|
@ -17,7 +17,7 @@ class HTMLBook(BaseModel): # pylint: disable=too-few-public-methods
|
|||||||
|
|
||||||
title: str
|
title: str
|
||||||
author: str
|
author: str
|
||||||
cover: Optional[str] = None
|
cover: Optional[str]
|
||||||
content: str
|
content: str
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"rewrites": [
|
|
||||||
{ "source": "/(.*)", "destination": "/api/main"}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user