Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cd /path/to/mastodon
- echo "backup bdd"
- pg_dump mastodon_production > /path/to/backup-psql.sql
- echo "backup terminé"
- git fetch --tags
- git tag
- read -p "Which version do you want to install ? " tag
- git checkout $tag \
- && git pull origin $tag \
- && bundle install \
- && yarn install \
- && npm install \
- && RAILS_ENV=production bundle exec rails db:migrate \
- && RAILS_ENV=production bundle exec rails assets:precompile \
- && sudo systemctl restart mastodon-*.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement