Mastodonのアップデート方法

Mastodon

Mastodonのアップデート手順

cd ~/live/
git fetch

git status

# HEAD detached at v1.5.1
# Changes not staged for commit:
# (use “git add …” to update what will be committed)
# (use “git checkout — …” to discard changes in working directory)
#
# modified: docker-compose.yml
#
no changes added to commit (use “git add” and/or “git commit -a”)

git stash save
git checkout v1.5.1
git stash pop

docker-compose build
docker-compose run –rm web rails db:migrate
docker-compose run –rm web rails assets:precompile
docker-compose up -d
systemctl restart nginx

コメント

タイトルとURLをコピーしました