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 if [[ $EUID == 0 ]]; then echo "$0: error, do not run as root"; exit 1; fi
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