fix: Running migration Docker container on Windows (#432)

This commit is contained in:
Ahmed Bouhuolia
2024-05-01 00:52:23 +02:00
committed by GitHub
parent 9103b60653
commit 9504bb5ccd
2 changed files with 2 additions and 6 deletions

View File

@@ -37,4 +37,5 @@ RUN git clone https://github.com/vishnubob/wait-for-it.git
ADD docker/migration/start.sh /
RUN chmod +x /start.sh
CMD ["/start.sh"]
# Once we listen the mysql port run the migration task.
CMD ./wait-for-it/wait-for-it.sh mysql:3306 -- sh -c "node ./build/commands.js system:migrate:latest && node ./build/commands.js tenants:migrate:latest"

View File

@@ -1,5 +0,0 @@
# Migrate the master system database.
./wait-for-it/wait-for-it.sh mysql:3306 -- node ./build/commands.js system:migrate:latest
# Migrate all tenants.
./wait-for-it/wait-for-it.sh mysql:3306 -- node ./build/commands.js tenants:migrate:latest