Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaecl committed Dec 20, 2024
1 parent 2a80fc2 commit f628ff5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,3 @@ python ./build.py
```

Récupérer le résultat dans le dossier `./dist`

## Docker
[! TODO: Change process]
Pour faciliter le déploiement, une image docker est fournie. Pour créer l'image : `docker build -t centralisation .` et créer le conteneur `docker run -it -d -p 80:80 centralisation`.

Un fichier `docker-compose.yml` peut être édité :

```yml
version: "3"
services:
web:
image: centralisation
container_name: centralisation
restart: unless-stopped
ports:
- "80:80"
```
7 changes: 1 addition & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@
file.write(page_render)

# Copy the assets directory
shutil.copytree("./src/assets", "./dist/assets")

#???
json = json.dumps(data, ensure_ascii=False)
with open("./dist/links.json", "w", encoding="utf8") as links_json_file:
links_json_file.write(json)
shutil.copytree("./src/assets", "./dist/assets")

0 comments on commit f628ff5

Please sign in to comment.