Compare commits
No commits in common. "ec9a7ceb4e0453519d2f5d755bf5678f3c3ea9f5" and "e3b259c6ffae6f1cd14dee0afb299dceab25efe0" have entirely different histories.
ec9a7ceb4e
...
e3b259c6ff
|
@ -27,6 +27,10 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: prod
|
name: prod
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install submodule
|
- name: install submodule
|
||||||
image: drone/git
|
image: drone/git
|
||||||
|
@ -80,6 +84,10 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: staging
|
name: staging
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install submodule
|
- name: install submodule
|
||||||
image: drone/git
|
image: drone/git
|
||||||
|
|
59
README.md
59
README.md
|
@ -6,52 +6,26 @@ Le but étant de communiquer et se faire connaître sur nos différentes offres
|
||||||
|
|
||||||
## Technologie
|
## Technologie
|
||||||
|
|
||||||
- Le site est créé à l'aide de l'outil de génération de site statique Open Source [Hugo](https://gohugo.io)
|
- Le site est créé à l'aide de l'outil de génération de site statique Open Source [Hugo](https://gohugo.io).
|
||||||
- Le déploiement continu se fait à l'aide de l'outil Open Source [Drone CI](https://www.drone.io/)
|
- Le serveur web utilisé est [Nginx](https://www.nginx.com/)
|
||||||
- Le site est hébergé sur un stockage S3 dont l'outil est [Garage](https://garagehq.deuxfleurs.fr/) fait par l'association [Deuxfleurs](https://deuxfleurs.fr/)
|
- La mise à jour s'éffectue avec [Directus](https://directus.io/)
|
||||||
- Une gestion de haute disponibilité est mis en place à l'aide de [Traefik](https://traefik.io/)
|
- Le déploiement à l'aide de docker compose (v2)
|
||||||
|
|
||||||
## Commandes
|
## Commandes
|
||||||
|
|
||||||
### Initialisation
|
Il y a plusieurs commandes que vous pouvez visualiser à l'aide de la commande `./run`.
|
||||||
|
|
||||||
Voici les commandes pour démarrer le projet localement :
|
Voici les commandes pour démarrer le projet localement :
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone --recurse-submodules https://git.resilien.fr/ResiLien/resilien.git
|
git clone --recurse-submodules https://git.weko.io/resilien/resilien.fr.git
|
||||||
cd resilien
|
cd resilien.fr
|
||||||
|
./run install
|
||||||
|
./run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Il faut ensuite installer quelques paquet depuis NPM :
|
Pour déployer en production :
|
||||||
|
|
||||||
```
|
```
|
||||||
(cd themes/hugo-theme-lowtech && npm i)
|
./run prod
|
||||||
```
|
|
||||||
|
|
||||||
### Développement
|
|
||||||
|
|
||||||
Il faut lancé le serveur de Hugo :
|
|
||||||
|
|
||||||
```
|
|
||||||
hugo serve
|
|
||||||
```
|
|
||||||
|
|
||||||
### Déploiement
|
|
||||||
|
|
||||||
Pour déployer sur _staging_ :
|
|
||||||
|
|
||||||
```
|
|
||||||
hugo --minify --buildDrafts --buildFuture --environment staging
|
|
||||||
node themes/hugo-theme-lowtech/scripts/typo
|
|
||||||
hugo deploy --environment staging
|
|
||||||
```
|
|
||||||
|
|
||||||
Pour déployer en _production_ :
|
|
||||||
|
|
||||||
```
|
|
||||||
hugo --minify --buildDrafts --buildFuture --environment staging
|
|
||||||
node themes/hugo-theme-lowtech/scripts/typo
|
|
||||||
hugo deploy --environment staging
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Liens
|
## Liens
|
||||||
|
@ -62,3 +36,14 @@ hugo deploy --environment staging
|
||||||
Icons :
|
Icons :
|
||||||
- Prise de note : https://thenounproject.com/search/?q=writting&i=3039563
|
- Prise de note : https://thenounproject.com/search/?q=writting&i=3039563
|
||||||
- Partage de fichiers : https://thenounproject.com/designcircle41/collection/data-storage/?i=4288373
|
- Partage de fichiers : https://thenounproject.com/designcircle41/collection/data-storage/?i=4288373
|
||||||
|
|
||||||
|
## Favicon
|
||||||
|
|
||||||
|
Il a été fait avec l'outil en ligne https://formito.com/tools/favicon et sauvegarder dans /static/logo.svg :
|
||||||
|
- Letter : R
|
||||||
|
- Font : Ubuntu
|
||||||
|
- Size : 90
|
||||||
|
- Variant : 500
|
||||||
|
- Background : carré avec les coins arrondis de couleur #c14508
|
||||||
|
|
||||||
|
Pour générer le favicon.ico `./run favicons`
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# -e Exit immediately if a command exits with a non-zero status.
|
||||||
|
# -u Treat unset variables as an error when substituting.
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
. ./.env
|
||||||
|
. ./themes/hugo-theme-lowtech/scripts/run
|
||||||
|
|
||||||
|
echo " ____ _ _ _ "
|
||||||
|
echo "| _ \ ___ ___(_) | (_) ___ _ __ "
|
||||||
|
echo "| |_) / _ \/ __| | | | |/ _ \ '_ \ "
|
||||||
|
echo "| _ < __/\__ \ | |___| | __/ | | |"
|
||||||
|
echo "|_| \_\___||___/_|_____|_|\___|_| |_|"
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ $# -ge 1 ]; then
|
||||||
|
$@
|
||||||
|
else
|
||||||
|
help_generic
|
||||||
|
fi
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue