Skip to content

Commit

Permalink
removed extra variables from tools.sh in frontend and updated \'sampl…
Browse files Browse the repository at this point in the history
…e env\'
  • Loading branch information
abbastoof committed Aug 16, 2024
1 parent b74de09 commit ee34b58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 0 additions & 6 deletions Frontend/tools.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
#!/bin/bash

USER_SERVICE_URL="http://user-service:8001/user/register/"

# Wait until the Django server is available
while ! curl -s "${USER_SERVICE_URL}" >/dev/null; do
echo "Waiting for Django server at ${USER_SERVICE_URL}..."
sleep 5
done

AUTH_SERVICE_URL="http://token-service:8000/"

# Wait until the Auth server is available
while ! curl -s "${AUTH_SERVICE_URL}" >/dev/null; do
echo "Waiting for Auth server at ${AUTH_SERVICE_URL}..."
sleep 5
done

GAME_HISTORY_URL="http://game-history:8002/"

# Wait until the Auth server is available
while ! curl -s "${GAME_HISTORY_URL}" >/dev/null; do
echo "Waiting for Auth server at ${GAME_HISTORY_URL}..."
Expand Down
9 changes: 7 additions & 2 deletions sample env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

DB_USER = "root"
DB_PASS = "root"

TOKEN_SERVICE = "http://token-service:8000"
USER_SERVICE = "http://user-service:8001"
GAME_HISTORY = "http://game-history:8002"
PGPASSWORD='root'
DJANGO_SECRET = "django-insecure-woftd2en2**zr(b%#*2vit2v%s@(k54gb^c(ots0abo7(wsmo%"
PGSQL_HOST = 'postgresql'

USER_SERVICE_EMAIL = '[email protected]'
USER_SERVICE_PASS = 'prie kqkh dled hlme'
USER_SERVICE_PASS = 'prie kqkh dled hlme'

0 comments on commit ee34b58

Please sign in to comment.