mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-26 14:46:56 +00:00
Fix Mastodon role: run DB migrations before health checks, restructure setup/wait tasks, introduce service name variables, and update docker-compose templates.
Reference: https://chatgpt.com/share/6925e87d-3e0c-800f-bfff-902d1faa122e
This commit is contained in:
4
roles/web-app-mastodon/tasks/01_setup.yml
Normal file
4
roles/web-app-mastodon/tasks/01_setup.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: "Execute migration for '{{ application_id }}'"
|
||||
command:
|
||||
chdir: "{{ docker_compose.directories.instance }}"
|
||||
cmd: "docker compose run --rm {{ MASTODON_SERVICE_NAME }} bundle exec rails db:migrate"
|
||||
Reference in New Issue
Block a user