Last active
June 17, 2016 17:12
-
-
Save betawax/4734704 to your computer and use it in GitHub Desktop.
Laravel 5 Installation
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 | |
# 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