Skip to content

Commit ded1680

Browse files
authored
Merge pull request #41 from sourceboat/feature/40-entrypoint-order
Run Startup Commands after wait-for-it
2 parents 3ab6bda + 4cf64ab commit ded1680

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

root/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ touch /opt/app/storage/logs/worker.log
1010
chown www-data:www-data -R /opt/app/storage
1111
chown www-data:www-data -R /opt/app/bootstrap/cache
1212

13-
# startup commands
14-
echo "Running startup commands..."
15-
php /usr/local/bin/startup-commands.php | bash
16-
1713
if [[ -n "$DB_HOST" || -n "$DB_PORT" ]]; then
1814
wait-for-it.sh --host=$DB_HOST --port=$DB_PORT
1915
fi
2016

17+
# startup commands
18+
echo "Running startup commands..."
19+
php /usr/local/bin/startup-commands.php | bash
20+
2121
exec "$@"

0 commit comments

Comments
 (0)