This is a simple script along with some useful information to help when setting up a Laravel Sail project that was cloned from source control. I made this because I could not find anywhere that explained how to do this and kept running into problems. The main issue was a problem with database authentication. It turns out that when the Docker volume is created for the database for the first time the password that is in the .env file is used, which I usually created after starting Sail for the first time. Another issue was not having access to the Sail binary to start the containers. This is solved by the script by installing the composer dependencies with a disposable container. If you follow the steps below in order you should not run into any issues. Feel free to leave a comment on this Gist if it could be improved.
- Mover linea - Alt + ↑ / ↓
- Copiar linea - Shift + Alt + ↑ / ↓
- Seleccionar todas las apariciones - Ctrl + Shift + L
- Crear múltiples cursores - Ctrl + Alt+ ↑ / ↓
- Selección multiple - Alt + Click
- Mover bloque - Seleccionar . Alt + ↑ / ↓
- Copiar bloque - Seleccionar . Shift + Alt + ↑ / ↓
- Comentar linea - Ctrl + \ || esp(Ctrl + ç)
This is a simple script along with some useful information to help when setting up a Laravel Sail project that was cloned from source control. I made this because I could not find anywhere that explained how to do this and kept running into problems. The main issue was a problem with database authentication. It turns out that when the Docker volume is created for the database for the first time the password that is in the .env file is used, which I usually created after starting Sail for the first time. Another issue was not having access to the Sail binary to start the containers. This is solved by the script by installing the composer dependencies with a disposable container. If you follow the steps below in order you should not run into any issues. Feel free to leave a comment on this Gist if it could be improved.
## prerequirements (VPS - XL) - after entered the rescuesystem | |
bash | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda3 | |
mount /dev/sda3 /mnt/gentoo | |
mkdir /mnt/gentoo/boot | |
cd /mnt/gentoo | |
#stage3: https://www.gentoo.org/downloads/#other-arches | current: http://distfiles.gentoo.org/releases/amd64/autobuilds/20170525/stage3-amd64-20170525.tar.bz2 | |
wget <PASTED_STAGE_URL> |
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |