mastodon
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| mastodon [2023/10/06 09:42] – [Mise à jour] dbroqua | mastodon [2026/09/04 09:28] (Version actuelle) – Suppression contact | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | # Mastodon | ||
| - | ## Mise à jour | ||
| - | ``` | ||
| - | docker exec live_db_1 pg_dump -Fc -U mastodon mastodon_production > 20210309.dump | ||
| - | tar --exclude=public/ | ||
| - | git fetch --tags | ||
| - | git stash # stash any changes made to the working directory (typically only docker-compose.yml file) | ||
| - | git checkout v3.3.0 | ||
| - | git stash pop # restore any changes you made to the working directory (i.e. passwords in docker-compose.yml files, verify via git diff) | ||
| - | docker-compose build # build the web, streaming and sidekiq services, they all share the same container image. This may take a while. | ||
| - | docker images | ||
| - | docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web rails db: | ||
| - | # You can check the return code via echo $?, if the rc is zero than the migration was successful | ||
| - | docker-compose down # shutdown all docker-compose services | ||
| - | docker-compose run --rm web bin/tootctl cache clear # clear cache | ||
| - | docker-compose run --rm web rails db:migrate # Run post-deployment database migrations, again verify that it succeeded via echo $?. 0 means success | ||
| - | docker-compose up -d # create and start containers, detaching from their stdout | ||
| - | docker system prune -a # remove unused docker data (images, containers, volumes) | ||
| - | ``` | ||
| - | |||
| - | Source ; https:// | ||
| - | |||
| - | ## Custom css | ||
| - | ```css | ||
| - | body { | ||
| - | background: url("/ | ||
| - | background-repeat: | ||
| - | background-size: | ||
| - | background-color: | ||
| - | } | ||
| - | |||
| - | .drawer, .column { | ||
| - | opacity: 0.92; | ||
| - | } | ||
| - | |||
| - | .drawer__inner__mastodon { | ||
| - | display: none; | ||
| - | } | ||
| - | |||
| - | .column { | ||
| - | flex: auto; | ||
| - | } | ||
| - | |||
| - | .drawer__inner { | ||
| - | height: auto; | ||
| - | max-height: 100%; | ||
| - | } | ||
| - | |||
| - | .drawer__inner { | ||
| - | border-radius: | ||
| - | } | ||
| - | |||
| - | .column-header, | ||
| - | border-top-left-radius: | ||
| - | border-top-right-radius: | ||
| - | } | ||
| - | |||
| - | .drawer__header, | ||
| - | border-bottom-left-radius: | ||
| - | border-bottom-right-radius: | ||
| - | } | ||
| - | |||
| - | .search, .search__input { | ||
| - | border-radius: | ||
| - | } | ||
| - | ``` | ||
mastodon.1696585323.txt.gz · Dernière modification : de dbroqua
