mirror of
https://github.com/bitwarden/server.git
synced 2025-02-01 23:31:41 +01:00
Add a tiny sleep to the run_migrations script due to a weird bug with Docker (#1634)
This commit is contained in:
parent
162822bd9d
commit
4d6b0c9106
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# There seems to be [a bug with docker-compose](https://github.com/docker/compose/issues/4076#issuecomment-324932294)
|
||||
# where it takes ~40ms to connect to the terminal output of the container, so stuff logged to the terminal in this time is lost.
|
||||
# The best workaround seems to be adding tiny delay like so:
|
||||
sleep 0.1;
|
||||
|
||||
MIGRATE_DIRECTORY="/mnt/migrator/DbScripts"
|
||||
LAST_MIGRATION_FILE="/mnt/data/last_migration"
|
||||
SERVER='localhost'
|
||||
|
Loading…
Reference in New Issue
Block a user