Created
May 5, 2017 21:17
-
-
Save acbilimoria/1ed0b1c794c11609959999ecebd81a24 to your computer and use it in GitHub Desktop.
Get New Laravel Install Ready to use
This file contains hidden or 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
#make sure composer is installed globally | |
composer global require "laravel/installer" | |
#make sure that composer is installed | |
composer install --no-dev --optimize-autoloader | |
#update composer to make sure dependencies are up to date | |
composer update --no-scripts | |
#copy .env.example file as .env | |
cp .env.example .env | |
#add a php key to .env file | |
php artisan key:generate | |
# enable debugging | |
sed -i "s/'debug' => env('APP_DEBUG', false),/'debug' => env('APP_DEBUG', true),/g" config/app.php | |
#make sure that npm and node are installed | |
sudo apt-get install nodejs npm | |
#make sure npm is updated | |
npm update | |
#optimize laravel | |
php artisan optimize | |
#php migrate | |
php artisan migrate | |
#seed the database | |
php artisan db:seed | |
#start npm and have it monitor for changes in files | |
npm run watch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment