Force mastodon_web to recompile its assets when it starts

This commit is contained in:
Erik Stambaugh 2022-11-14 15:13:34 -08:00
parent 5e798c6f35
commit c56ab06b89

View file

@ -63,7 +63,7 @@ services:
image: ghcr.io/mastodon/mastodon:v4.2.0
restart: always
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
command: bash -c "rm -f /mastodon/tmp/pids/server.pid && bundle exec rake assets:precompile && bundle exec rails s -p 3000"
networks:
- mastodon
- nginx