Skip to content

Commit

Permalink
Have octane wait for a manifest to exist
Browse files Browse the repository at this point in the history
PR: #11779
  • Loading branch information
AJGranowski committed Jan 15, 2025
1 parent 88dc4d2 commit 12fa440
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/development/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ _migrate() {
}

_octane() {
exec ./artisan octane:start --host=0.0.0.0 "$@"
echo_counter=0
manifest_path='./public/assets/manifest.json'
while [ ! -f "$manifest_path" ]; do
if [ "$echo_counter" -le 0 ]; then
echo_counter=5
echo "waiting to start octane: ${manifest_path##*/} not found" >&2
fi

: $(( echo_counter -= 1 ))
sleep 1
done

exec ./artisan octane:start --host=0.0.0.0 "$@"
}

_schedule() {
Expand Down

0 comments on commit 12fa440

Please sign in to comment.