4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
7 # https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Docker-Guide.md
9 [[ $EUID == 0 ]] ||
exec sudo
-E "$BASH_SOURCE" "$@"
11 cd /home
/iank
/mastodon
14 git checkout $
(git tag |
grep -v rc |
tail -n1)
17 # these 2 may not be needed in all upgrades, but
18 # simpler to just do them always.
19 docker-compose run
--rm web rake db
:migrate
20 docker-compose run
--rm web rake assets
:precompile