Added passport key generation
This commit is contained in:
parent
b244577c76
commit
e87698b30c
6
init
6
init
@ -71,6 +71,12 @@ if [ "${role}" = "app" -a -e artisan ]; then
|
||||
echo "* Running migration..."
|
||||
su www-data -s /bin/sh -c "php artisan migrate" && rm -f .migrate
|
||||
fi
|
||||
|
||||
# If passport is installed
|
||||
if [ -d ${php}/vendor/laravel/passport ]; then
|
||||
echo "* Generating OAUTH keys ..."
|
||||
su www-data -s /bin/sh -c "php artisan passport:keys"
|
||||
fi
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/docker-php-entrypoint "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user