Skip to content

Commit

Permalink
wait until ther server started fully
Browse files Browse the repository at this point in the history
  • Loading branch information
EsubalewAmenu authored Nov 30, 2024
1 parent a7fb291 commit 82f7067
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .aws/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"command": [
"bash",
"-c",
"python manage.py collectstatic --noinput &&python manage.py makemigrations && python manage.py migrate && python manage.py seed_hrms && python manage.py init_item_types && python manage.py runserver 0.0.0.0:8080 && python manage.py create_user --email [email protected] --first_name Esubalew --last_name Amenu --primary_phone +251923481783 --role Administrator --department Admin --is_superuser"
],
"python manage.py collectstatic --noinput && python manage.py makemigrations && python manage.py migrate && python manage.py seed_hrms && python manage.py init_item_types && python manage.py runserver 0.0.0.0:8080 &) && while ! curl -s http://localhost:8080/health/; do sleep 2; done && python manage.py create_user --email [email protected] --first_name Esubalew --last_name Amenu --primary_phone +251923481783 --role Administrator --department Admin --is_superuser"
]
,
"environment": [
{
"name": "EMAIL_USE_TLS",
Expand Down

0 comments on commit 82f7067

Please sign in to comment.