Skip to content

Instantly share code, notes, and snippets.

@betawax
Last active June 17, 2016 17:12
Show Gist options
  • Save betawax/4734704 to your computer and use it in GitHub Desktop.
Save betawax/4734704 to your computer and use it in GitHub Desktop.
Laravel 5 Installation
#!/bin/sh
# Get the project name
PROJECT_NAME=${1:-laravel}
# Install Laravel via Composer
composer create-project laravel/laravel $PROJECT_NAME dev-develop --prefer-dist
# Change to the project directory
cd $PROJECT_NAME
# Remove Laravel related Markdown
rm -f readme.md
# Configure folder permissions
find storage/* -type d -exec chmod 775 {} \;
# Create a new Git repository
git init && git add . && git commit -m "Initial commit"
# Add a upstream remote pointing to the Laravel repository
git remote add laravel git://github.com/laravel/laravel.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment