Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No hacer migraciones automáticamente al arrancar #6

Open
astrojuanlu opened this issue Nov 26, 2023 · 1 comment
Open

No hacer migraciones automáticamente al arrancar #6

astrojuanlu opened this issue Nov 26, 2023 · 1 comment

Comments

@astrojuanlu
Copy link
Member

Observamos que, cuando se quiere restaurar una copia de la base de datos, es mejor no hacer las migraciones automáticamente tras el despliegue.

@astrojuanlu
Copy link
Member Author

Lo suyo parece ser definir un servicio tipo:

  migration:
    container_name: migration
    image: jointakahe/takahe:0.10
    command: python3 manage.py migrate
    env_file: .env
    depends_on:
      - db

con el que poder hacer las migraciones. Investigar un poco más.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant