Last active
September 4, 2015 16:32
-
-
Save johnhout/bd801ed6e3293eba1a7e to your computer and use it in GitHub Desktop.
Laravel 5 quick install bash!
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/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