Skip to content

Commit

Permalink
Fix : docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément committed Jun 27, 2024
1 parent 0e460c0 commit 4458780
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ RUN pip install -Ur requirements.txt \
COPY manage.py tsconfig.json vite.config.ts ./
COPY jssg/ jssg/
COPY content/ content/
COPY common-content/ common-content/
COPY galae-content/ galae-content/

# Build
RUN npm run build \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ Or, if you prefer docker:

```shell
$ docker build -t jssg .
$ sudo docker run -p 8080:80 jssg:latest
```

## Others

This repo is a fork of https://github.com/jtremesay/jssg.git for algoo websites use cases.
```
8 changes: 0 additions & 8 deletions jssg/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ def convert_case(match_obj):
# )

if "engine" in self.metadata.keys() and self.metadata["engine"] == "jinja2" :
print(engines["jinja2"].from_string(self.content).render(
{
"posts": sorted(
Post.load_glob(), key=lambda p: p.timestamp, reverse=True
),
"data":self.data
}
))
return engines["jinja2"].from_string(self.content).render(
{
"posts": sorted(
Expand Down

0 comments on commit 4458780

Please sign in to comment.