Spaces:
Build error
Build error
Update start.sh
Browse files
start.sh
CHANGED
@@ -6,12 +6,6 @@ service redis-server start
|
|
6 |
# Start PostgreSQL
|
7 |
service postgresql start
|
8 |
|
9 |
-
# Wait for PostgreSQL
|
10 |
-
while ! pg_isready -q -h localhost -p 5432 -U postadmin
|
11 |
-
do
|
12 |
-
echo "$(date) - waiting for database to start"
|
13 |
-
sleep 2
|
14 |
-
done
|
15 |
|
16 |
# Run migrations
|
17 |
alembic upgrade head
|
|
|
6 |
# Start PostgreSQL
|
7 |
service postgresql start
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Run migrations
|
11 |
alembic upgrade head
|