Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| mastodon [2022/11/16 07:13] – créée dbroqua | mastodon [2023/10/06 09:42] (Version actuelle) – [Mise à jour] dbroqua | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| # Mastodon | # 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 | ## Custom css | ||