Skip to content

Instantly share code, notes, and snippets.

@acbilimoria
Created May 5, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acbilimoria/1ed0b1c794c11609959999ecebd81a24 to your computer and use it in GitHub Desktop.
Save acbilimoria/1ed0b1c794c11609959999ecebd81a24 to your computer and use it in GitHub Desktop.
Get New Laravel Install Ready to use
#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