Made migration controlled by a dot file
This commit is contained in:
parent
c66b95e414
commit
55e8429e75
8
init
8
init
@ -18,8 +18,12 @@ if [ "${role}" = "app" -a -e artisan ]; then
|
|||||||
su www-data -s /bin/sh -c "composer install" && ( test -e .composer.refresh && rm -f .composer.refresh )
|
su www-data -s /bin/sh -c "composer install" && ( test -e .composer.refresh && rm -f .composer.refresh )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running migration..."
|
if [ -r .migrate ]; then
|
||||||
(php artisan migrate)
|
echo "Running migration..."
|
||||||
|
php artisan migrate
|
||||||
|
rm -f .migrate
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Caching configuration..."
|
echo "Caching configuration..."
|
||||||
(php artisan config:cache && php artisan route:cache && php artisan view:cache)
|
(php artisan config:cache && php artisan route:cache && php artisan view:cache)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user