mastodon/update_dev.sh
Baptiste Lemoine b3c8105a52 added update scripts for dev and prod envs
Signed-off-by: Baptiste Lemoine <contact@cipherbliss.com>
2020-02-12 10:02:59 +01:00

19 lines
547 B
Bash

#!/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