Skip to content

Commit

Permalink
add link finder
Browse files Browse the repository at this point in the history
  • Loading branch information
kalazus committed Feb 13, 2024
1 parent c5a9a14 commit 6e2e4ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ cd $ORIGINALDIR
FOOOCUS_LOGS=$DATADIR/fooocus.log
python entry_with_update.py --listen --port 3001 ${CMDARGS} > $FOOOCUS_LOGS 2>&1 &

LINK=""
while [[ ! $LINK ]]; do
LINK=$(grep -o 'Running on public URL.*' $FOOOCUS_LOGS)
sleep 10
done
echo $LINK

# check usage
touch $FOOOCUS_LOGS
./vast_usage.sh 20 $FOOOCUS_LOGS
Expand Down

0 comments on commit 6e2e4ec

Please sign in to comment.