Skip to content

Commit 10d86f6

Browse files
author
Hauke Ingwersen
committed
Fix entrypoint.sh , change dir before exec artisan command, add exec
1 parent ab4fac0 commit 10d86f6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

home/app/entrypoint.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ 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+
cd /opt/app
14+
1315
# create storage symlink
1416
echo "create storage symlink..."
1517
su www-data -s /bin/sh -c "php artisan storage:link -q"
1618

17-
# startup commands
18-
php /usr/local/bin/startup_commands.php | bash
19+
# startup commands
20+
php /usr/local/bin/startup-commands.php | bash
1921

20-
cd /opt/app
2122

22-
"$@"
23+
exec "$@"

0 commit comments

Comments
 (0)