Last active
May 17, 2020 17:11
-
-
Save CerealKiller97/412af2dfdbe441ba56e74f260f5d0d3a to your computer and use it in GitHub Desktop.
Laravel Local Setup
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 | |
echo "Copying .env file..." | |
if [ ! -f ".env" ]; then | |
scp .env.example .env | |
fi | |
echo "Composer install..." | |
composer install | |
clear | |
echo "Generating Application key..." | |
php artisan key:generate | |
clear | |
echo "Installing npm dependencies..." | |
npm i | |
clear | |
echo "Running npm run dev for static files..." | |
npm run dev | |
clear | |
echo "Migrating and seeding database..." | |
php artisan migrate:fresh --seed | |
clear | |
echo "Generating ide:helper stuff" | |
php artisan ide-helper:generate | |
php artisan ide-helper:meta | |
echo $'\e[32;1mFinished, you are good to go. Happy coding :).' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment