Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> I know i said the last one is the fix but this is the fixt FR FR FR
  • Loading branch information
NaysKutzu committed Nov 24, 2024
1 parent 0d9edcd commit 1a72e4e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ chmod -R 777 ./
# Update dependencies
docker exec mythicalclient_backend bash -c "COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader"

# Migrations
docker exec mythicalclient_backend bash -c "php mythicalclient migrate"

# Reset the encryption key
# Check if the installation has already been completed
INSTALL_FLAG=".installed"
Expand All @@ -43,3 +40,11 @@ else
echo "Installation already completed. Skipping..."
fi

# Migrations
# Wait for the database container to be ready
until docker exec mythicalclient_database pg_isready; do
echo "Waiting for mythicalclient_database to be ready..."
sleep 2
done

docker exec mythicalclient_backend bash -c "php mythicalclient migrate"

0 comments on commit 1a72e4e

Please sign in to comment.