Custom front end for 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.
mastodon/update_prod.sh

17 lines
596 B

#!/bin/bash
## script must be run with the mastodon user
cd /home/mastodon/live/
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
echo "########## install back end updates "
RAILS_ENV=production bundle install
RAILS_ENV=production bundle exec rake db:migrate
echo "########## install front end updates "
RAILS_ENV=production bundle exec rails assets:precompile
echo "########## check the services "
echo "########## now time to restart web services "