Added Lumen detection

This commit is contained in:
Deon George 2020-07-31 16:42:40 +10:00
parent 81b970b53b
commit a62d434cef

8
init
View File

@ -74,8 +74,12 @@ if [ "${role}" = "app" -a -e artisan ]; then
[ -n "${FORCE_PERMS}" -o "${env}" != "dev" -a -z "${SKIP_PERM}" ] && [ ${mp} -eq 0 ] && chmod g-w ${php}
fi
echo "* Caching configuration..."
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
if [ -e .lumen ]; then
echo "* Lumen detected..."
else
echo "* Caching configuration..."
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
fi
if [ -r .migrate ]; then
echo "* Running migration..."