Last active
November 17, 2016 21:49
-
-
Save codepainkiller/9bb15aab2f59a8f7aea492376fae5336 to your computer and use it in GitHub Desktop.
Configuraciones de Laravel
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
Instalar composer de manera global | |
---------------------------------- | |
cd ~ | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
sudo mv composer.phar /usr/local/bin/composer | |
composer | |
Crear nuevo proyecto Laravel 5.1 | |
-------------------------- | |
composer create-project laravel/laravel blog "5.1.*" | |
sudo o+w -R storage | |
sudo o+w -R bootstrap/cache | |
Clonar proyecto Laravel | |
----------------------- | |
git clone <url_ssh_project> | |
sudo o+w -R storage | |
sudo o+w -R bootstrap/cache | |
php artisan key:generate | |
Instalar LAMP | |
------------- | |
https://styde.net/como-instalar-lamp-en-ubuntu-linux/ | |
Instalar PHP 5.6 Ubuntu 14.04 | |
----------------------------- | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php5-5.6 | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install php5 | |
VirtualHost Laravel | |
------------------- | |
https://gist.github.com/martincruzot/4507ca30136793aaab06 | |
Instalar Homestead | |
------------------ | |
Toda esta en la documentacion oficial: | |
https://laravel.com/docs/5.1/homestead#per-project-installation | |
1. Descargar e instalar VirtualBox para tu version de linux | |
https://www.virtualbox.org/wiki/Downloads | |
2. Descargar e instalar Vagrant | |
https://www.vagrantup.com/downloads.html | |
3. Agregar a vagrant el box de laravel con el siguente comando: | |
vagrant box add laravel/homestead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment