Go to this link and follow the instructions. https://getcomposer.org/doc/00-intro.md#installation-windows (this is not a guide to install composer :))
C:\Users\username>composer -V
Composer version xxxxxxxxxx
1) Sync de files: | |
#entramos en la carpeta que deseamos sincronizar | |
$ cd /public_html/sites/ | |
#sincronizamos la carpeta con la de origen en el repo o servidor por ejemplo. | |
$ rsync -avz user@dominio.com:/home/www/sites/ . | |
## Si tenemos hostgator u otro servidor que necesita incluir el puerto por ssh haríamos esto. |
Generando tu clave pública SSH | |
PASO 1 | |
$ cd ~/.ssh | |
$ ls | |
authorized_keys2 id_dsa known_hosts | |
config | |
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
Luego de llevar a cabo los pasos del otro | |
tutorial de cómo instalar Lamp y configurar | |
los virtualhost procedemos a instalar laravel | |
sobre esa intalación. | |
0. Chequeamos estos requisitos necesarios para que funcione Laravel. | |
PHP> = 5.5.9 | |
OpenSSL PHP Extensión | |
DOP PHP Extensión |
/* | |
LES CUENTO QUE ESTUVE COMO 2 DÍAS BUSCANDO LA SOLUCIÓN A ESTE PROBLEMA. | |
EN MI CASO ME PASABA CUANDO INTENTABA SUBIR MI PROYECTO CASI TERMINADO A UN SERVER COMPARTIDO. | |
PROBÉ DESDE LA SOLUCIÓN MAS FACIL A LA MAS DIFÍCIL Y NADA LO ARREGLABA. | |
INSTALÉ 2 VECES DESDE 0 EL PROYECTO... COPIÉ UNO A UNO CADA ARCHIVO QUE HICE... Y NADA |
# Your table will have something like this | |
<b-table show-empty | |
stacked="sm" | |
:items="items" | |
:fields="fields" | |
:current-page="currentPage" | |
:per-page="perPage" | |
:filter="filter" | |
@filtered="onFiltered" | |
@row-clicked="editUser" |
Go to this link and follow the instructions. https://getcomposer.org/doc/00-intro.md#installation-windows (this is not a guide to install composer :))
C:\Users\username>composer -V
Composer version xxxxxxxxxx
cat ~/.ssh/id_rsa.pub | ssh user@droplet-ip "cat >> ~/.ssh/authorized_keys" |
Your user as owner | |
I prefer to own all the directories and files (it makes working with everything much easier), so I do: | |
# sudo chown -R my-user:www-data /path/to/your/laravel/root/directory | |
Then I give both myself and the webserver permissions: | |
# sudo find /path/to/your/laravel/root/directory -type f -exec chmod 664 {} \; | |
# sudo find /path/to/your/laravel/root/directory -type d -exec chmod 775 {} \; |
# Don't show errors which contain full path diclosure (FPD) | |
# Use that line only if PHP is installed as a module and not per CGI | |
# try using a php.ini in that case. | |
# Change mod_php5.c to mod_php7.c if you are running PHP7 | |
<IfModule mod_php5.c> | |
php_flag display_errors Off | |
</IfModule> | |
# Don't list directories | |
<IfModule mod_autoindex.c> |