Advertisement
Guest User

update mastodon

a guest
May 24th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. cd /path/to/mastodon
  4.  
  5. echo "backup bdd"
  6. pg_dump mastodon_production > /path/to/backup-psql.sql
  7. echo "backup terminé"
  8.  
  9. git fetch --tags
  10.  
  11. git tag
  12.  
  13. read -p "Which version do you want to install ? " tag
  14.  
  15. git checkout $tag \
  16. && git pull origin $tag \
  17. && bundle install \
  18. && yarn install \
  19. && npm install \
  20. && RAILS_ENV=production bundle exec rails db:migrate \
  21. && RAILS_ENV=production bundle exec rails assets:precompile \
  22. && sudo systemctl restart mastodon-*.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement