Добавить public_project.md
This commit is contained in:
34
public_project.md
Normal file
34
public_project.md
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user