Mastodon: Fix/Add steps for steps after upgrade
This commit is contained in:
parent
16ffc3ebc5
commit
d6104d2655
1 changed files with 9 additions and 2 deletions
|
@ -27,15 +27,22 @@ yarn install
|
||||||
# If upgrading from a previous image, rough notes until automated
|
# If upgrading from a previous image, rough notes until automated
|
||||||
# cp /home/mastodon/live/.env.production /home/mastodon/backup/
|
# cp /home/mastodon/live/.env.production /home/mastodon/backup/
|
||||||
# sudo -u postgres pg_dump -d mastodon_production -F c | tee /home/mastodon/backup/mastodon_production.sql > /dev/null
|
# sudo -u postgres pg_dump -d mastodon_production -F c | tee /home/mastodon/backup/mastodon_production.sql > /dev/null
|
||||||
|
# cp /etc/nginx/sites-available/mastodon /home/mastodon/backup/nginx.mastodon
|
||||||
# tofu apply
|
# tofu apply
|
||||||
# sudo -u postgres createdb mastodon_production
|
# sudo -u postgres createdb mastodon_production
|
||||||
# cat /home/mastodon/backup/mastodon_production.sql | sudo -u postgres pg_restore -d mastodon_production -F c
|
# cat /home/mastodon/backup/mastodon_production.sql | sudo -u postgres pg_restore -d mastodon_production -F c
|
||||||
|
# cp /home/mastodon/backup/nginx.mastodon /etc/nginx/sites-available/mastodon
|
||||||
|
# ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon
|
||||||
|
# rm /etc/nginx/sites-enabled/default
|
||||||
|
# chmod o+x /home/mastodon
|
||||||
|
# systemctl restart nginx
|
||||||
# sudo -u mastodon -i
|
# sudo -u mastodon -i
|
||||||
# cd backup/.env.production live/
|
# cp backup/.env.production live/
|
||||||
# cd live
|
# cd live
|
||||||
# bin/rails assets:precompile
|
# bin/rails assets:precompile
|
||||||
# cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
|
# cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
|
||||||
# systemctl daemon-reload
|
# systemctl daemon-reload
|
||||||
# systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
# systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
||||||
# sudo -u mastdon -i
|
# sudo -u mastodon -i
|
||||||
|
# cd live
|
||||||
# bin/tootctl feeds build
|
# bin/tootctl feeds build
|
||||||
|
|
Loading…
Add table
Reference in a new issue