Merge 6266b93cf1 into 4f422db1a0
This commit is contained in:
commit
86f4596db2
1 changed files with 2 additions and 1 deletions
3
setup.sh
3
setup.sh
|
|
@ -26,7 +26,7 @@ wait_for_postgres() {
|
||||||
echo -e "${BLUE}→ Waiting for PostgreSQL to be ready...${NC}"
|
echo -e "${BLUE}→ Waiting for PostgreSQL to be ready...${NC}"
|
||||||
local max_attempts=30
|
local max_attempts=30
|
||||||
local attempt=0
|
local attempt=0
|
||||||
|
|
||||||
cd "$BACKEND_DIR"
|
cd "$BACKEND_DIR"
|
||||||
|
|
||||||
while [ $attempt -lt $max_attempts ]; do
|
while [ $attempt -lt $max_attempts ]; do
|
||||||
|
|
@ -97,6 +97,7 @@ echo ""
|
||||||
|
|
||||||
# Phase 3: Run Database Migrations
|
# Phase 3: Run Database Migrations
|
||||||
echo -e "${BLUE}🗄️ Phase 3: Running Database Migrations${NC}"
|
echo -e "${BLUE}🗄️ Phase 3: Running Database Migrations${NC}"
|
||||||
|
cd "$BACKEND_DIR"
|
||||||
make migrateup
|
make migrateup
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue