diff --git a/start.sh b/start.sh index a94cea7a5..e55739436 100755 --- a/start.sh +++ b/start.sh @@ -38,7 +38,7 @@ create_env() { echo "SERVER_EMAIL = ""${EMAIL_HOST_USER-''}" >> $FILENAME echo "USE_SOLR = ""${USE_SOLR-False}" >> $FILENAME echo "SOLR_COLLECTION = ""${SOLR_COLLECTION-'sapl_$RANDOM'}" >> $FILENAME - echo "SOLR_URL = ""${SOLR_URL-'http://saplsolr:8983'}" >> $FILENAME + echo "SOLR_URL = ""${SOLR_URL-'http://localhost:8983'}" >> $FILENAME echo "[ENV FILE] done." @@ -50,9 +50,15 @@ create_env /bin/bash busy-wait.sh $DATABASE_URL + +# manage.py migrate --noinput nao funcionava +yes yes | python3 manage.py migrate +# python3 manage.py collectstatic --no-input + + ## SOLR USE_SOLR="${USE_SOLR:=False}" -SOLR_URL="${SOLR_URL:='http://saplsolr:8983'}" +SOLR_URL="${SOLR_URL:='http://localhost:8983'}" SOLR_COLLECTION="${SOLR_COLLECTION:='sapl_$RANDOM'}" NUM_SHARDS=${NUM_SHARDS:=1} @@ -78,11 +84,6 @@ else echo "Suporte a SOLR não inicializado." fi -# manage.py migrate --noinput nao funcionava -yes yes | python3 manage.py migrate -# python3 manage.py collectstatic --no-input - - echo "Criando usuário admin..." user_created=$(python3 create_admin.py 2>&1)