Skip to content

Instantly share code, notes, and snippets.

@rbarros
Created January 11, 2016 17:56
Show Gist options
  • Save rbarros/7fe55edeb0cab406fd71 to your computer and use it in GitHub Desktop.
Save rbarros/7fe55edeb0cab406fd71 to your computer and use it in GitHub Desktop.
Installing Laravel 5
#!/bin/bash
# Ubuntu Developer Script For Laravel 5
# Ramon Barros
# contato [a] ramon-barros.com
# v0.1.0
#
# Download and configures the following:
#
# curl
# composer
# php >= 5.5
#
PROJECT="backup"
HOST_PATH=$(cd /var/www/)
URL_COMPOSER=curl -sS https://getcomposer.org/installer | php
# Add Laravel installer to composer
php composer.phar global require "laravel/installer"
# Create a project to Laravel
php composer.phar create-project --prefer-dist laravel/laravel $PROJECT
#
chmod -R 777 $PROJECT/storage
chmod -R 777 $PROJECT/bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment