-
Crear el droplet
-
Acceder por ssh
-
Checkear las versiones 3.1 ps -ax | grep nginx
-
Configurar nginx mkdir /var/www/laravel index.php location / { try_files $uri $uri/ /index.php?$query_string; } descomentamos el location php
-
sudo apt install php7.0-mysql php7.0-fpm php7.0-mbstring php7.0-xml php7.0-curl php7.0-zip 5.1 Instalar composer
-
Instalar mi repo cd /var mkdir repo && cd repo mkdir site.git && cd site.git git init --bare cd /var/repo/site.git/hooks sudo nano post-receive
#!/bin/sh git --work-tree=/var/www/laravel --git-dir=/var/repo/site.git checkout -f
sudo chmod +x post-receive
##LOCAL git remote add production ssh://root@YOUR-IP/var/repo/site.git git push production master
cd /var/www/laravel && composer install --no-dev sudo nano /etc/php/7.0/fpm/php.ini ctrl+w cgi.fix_pathinfo descomentamos y le damos valor 0 sudo systemctl restart php7.0-fpm
sudo chown -R :www-data /var/www/laravel && sudo chmod -R 775 /var/www/laravel/storage && sudo chmod -R 775 /var/www/laravel/bootstrap/cache
cd /var/www/laravel && cp .env.example .env nano .env php artisan key:generate php artisan config:cache