mirror of https://framagit.org/tykayn/mastodon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
547 B
18 lines
547 B
#!/bin/bash |
|
## script must be run with the mastodon user |
|
|
|
echo "ruby version is": |
|
ruby -v |
|
echo "needed version is": |
|
cat .ruby-version |
|
echo "########## time to update mastodon. you need to pull your git branch before running this script." |
|
git remote -v |
|
git pull origin master |
|
echo "########## install back end updates " |
|
bundle install |
|
bundle exec rake db:migrate |
|
echo "########## install front end updates " |
|
bundle exec rails assets:precompile |
|
echo "########## check the services " |
|
echo "########## now time to restart web services " |
|
foreman start
|
|
|