Updated installer

Added key generation and database migrations
This commit is contained in:
Kamil Niemczycki 2022-04-19 18:39:14 +02:00
parent cfffdcd980
commit 308f1f5c76

View File

@ -5,7 +5,14 @@ if [ ! -d "vendor" ] && [ -f "composer.json" ]; then
echo "########################################"
echo "# vendor directory not found... #"
echo "########################################"
composer install
composer install \
&& php artisan key:generate
if [ ! -f "database/database.sqlite" ]; then
touch database/database.sqlite
fi
php artisan migrate --seed
fi
if [ ! -d "node_modules" ] && [ -f "package.json" ]; then