Created
December 2, 2019 01:31
-
-
Save nasrulhazim/005fe91297353e45290cde6829bc3c87 to your computer and use it in GitHub Desktop.
Initialise Laravel Application in Bash Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
composer install | |
if [ ! -f .env ]; then | |
cp .env.example .env | |
php artisan key:generate | |
else | |
echo ".env file already created." | |
fi | |
if [ ! -L public/storage ]; then | |
php artisan storage:link | |
else | |
echo "Symlink to storage already created." | |
fi | |
php artisan reload:cache | |
php artisan reload:db | |
php artisan passport:install | |
yarn install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment