Last active
January 13, 2016 02:14
-
-
Save jhonnrodr/8862a683a0ec030aa72c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Requisitos: | |
En ubuntu 14.04 LTS: | |
APACHE | |
MYSQL | |
REDIS | |
NODEJS | |
//El proceso usualmente lo hacemos manual | |
// Pero Puede utilizar Forge para instalar el servidor de forma automatica y preparado ya para Laravel | |
https://forge.laravel.com/ | |
Crear y Configurar la base de datos en MYSQL: | |
'host' => 'linc.do', | |
'database' => 'linc.do', | |
'username' => 'root', | |
'password' => 'wfQ6TvCbSQpG86Jy' | |
Descargar proyecto Linc y desplegar | |
cd /var/www/ | |
git clone -b production https://github.com/jhonn921007/Linc.git linc | |
cd linc | |
// Instalar Composer para descargar paquetes de Laravel | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-14-04 | |
//Descargar dependencias o paquetes de la Aplicacion | |
composer install | |
composer update | |
// Dar permisos a Laravel | |
chmod -R 777 app/storage; | |
chmod -R 777 public/uploads; | |
//Configurar base de datos creada en MYSQL | |
vi app/config/database.php | |
//Desplegar Migraciones de Base de datos | |
php artisan migrate:install | |
php artisan migrate:refresh | |
//Desplegar aplicacion | |
php artisan serve | |
Configurar VirtualHost de APACHE | |
cd /etc/apache2/sites-available | |
vi 000-default.conf | |
<VirtualHost *:80> | |
ServerName Linc.do | |
DocumentRoot /var/www/linc.public | |
<Directory /var/www/linc/public> | |
<IfModule mod_rewite.c> | |
OPtions - Multiviews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName linc.do | |
DocumentRoot /var/www/linc/public | |
<Directory /var/www/linc/public> | |
<IfModule mod_rewite.c> | |
OPtions - Multiviews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/linc_do.crt | |
SSLCertficateKeyFile /etc/apache2/ssl/linc_do.key | |
SSLCACertificateFile /etc/apache2/ssl/linc_do.ca-bundle | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment