Skip to content

Instantly share code, notes, and snippets.

@nguyenvanduocit
Forked from betawax/laravel.sh
Created June 17, 2016 17:12
Show Gist options
  • Save nguyenvanduocit/425cecb93234a9760bcb8eb49cf6f391 to your computer and use it in GitHub Desktop.
Save nguyenvanduocit/425cecb93234a9760bcb8eb49cf6f391 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