Skip to content

Instantly share code, notes, and snippets.

@nunomazer
Forked from johnhout/setup_laravel.sh
Last active August 29, 2015 14:08
Show Gist options
  • Save nunomazer/3991fb3142625edd985b to your computer and use it in GitHub Desktop.
Save nunomazer/3991fb3142625edd985b to your computer and use it in GitHub Desktop.
#!/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
php artisan key:generate
php artisan app:name ${projectname}
gulp phpunit
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