Skip to content

Commit

Permalink
Merge pull request #11779 from AJGranowski/first-run-fix
Browse files Browse the repository at this point in the history
Fix first-time run of `docker_dev.sh`
  • Loading branch information
nanaya authored Jan 15, 2025
2 parents 4730893 + c5d47d0 commit a3e3e2d
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 a3e3e2d

Please sign in to comment.