From d9c6c159e262eb14a19cd5d63b4fc61653a6327c Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 6 Feb 2026 08:17:54 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20public=5Fproject.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_project.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 public_project.md diff --git a/public_project.md b/public_project.md new file mode 100644 index 0000000..6956013 --- /dev/null +++ b/public_project.md @@ -0,0 +1,34 @@ +## Разварачивание проекта из git + +1. Клонировать проект +2. cp .env.example .env и заполнить ее данынми +3. php artisan key:generate - создать ключ +4. php artisan migrate --force - Мигрировать базу +5. php artisan db:seed --force - заполнить данными + +#### Пример настройки nginx +```bash + +server { + listen 80; + server_name example.com; + root /var/www/laravel/public; + index index.php index.html; + location / { + try_files $uri $uri/ +/index.php?$query_string; + } + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php8.1- +fpm.sock; + fastcgi_param SCRIPT_FILENAME +$document_root$fastcgi_script_name; + include fastcgi_params; + } + location ~ /\.ht { + deny all; + } +} + +``` \ No newline at end of file