Skip to content

Instantly share code, notes, and snippets.

@johnhout
Last active September 4, 2015 16:32
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnhout/bd801ed6e3293eba1a7e to your computer and use it in GitHub Desktop.
Save johnhout/bd801ed6e3293eba1a7e to your computer and use it in GitHub Desktop.
Laravel 5 quick install bash!
#!/bin/sh
# Laravel 5 new project setup bash script.
# Inspired by Mitchell van Wijngaarden
# Extended by John in 't Hout
projectname=$1
git clone -o laravel -b develop https://github.com/laravel/laravel.git ${projectname} >/dev/null
cd ${projectname}
git checkout --orphan master
rm -rf .git
git init
git add .
git commit -m "Initial commit"
composer install >/dev/null
npm install >/dev/null
bower install
php artisan key:generate
php artisan app:name ${projectname}
echo -e "############################
All Done! Crafted a new Laravel 5 app for you! Called ${1}
############################";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment