Added Lumen detection
This commit is contained in:
parent
81b970b53b
commit
a62d434cef
8
init
8
init
@ -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}
|
[ -n "${FORCE_PERMS}" -o "${env}" != "dev" -a -z "${SKIP_PERM}" ] && [ ${mp} -eq 0 ] && chmod g-w ${php}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "* Caching configuration..."
|
if [ -e .lumen ]; then
|
||||||
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
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
|
if [ -r .migrate ]; then
|
||||||
echo "* Running migration..."
|
echo "* Running migration..."
|
||||||
|
Loading…
Reference in New Issue
Block a user