I use laravel backpack and everything works when I start the server using php artisan serve, and then use the admin panel at localhost:8000/admin.
But as soon as I run docker(nginx + php fpm (here is backpack) + mysql) it stops working!
Okay, you tell me that basset is trying to use a local path and it is. My next step is to replace APP_ENV=local with APP_ENV=production (yes, that's exactly what I need). This way I achieve that backpack finds all the necessary files, but the page is displayed WITHOUT STYLES and other resources. Here is screenshots for case "APP_ENV=production, APP_URL=http://nginx"
I use laravel backpack and everything works when I start the server using
php artisan serve
, and then use the admin panel atlocalhost:8000/admin
.But as soon as I run docker(nginx + php fpm (here is backpack) + mysql) it stops working!
Okay, you tell me that basset is trying to use a local path and it is. My next step is to replace APP_ENV=local with APP_ENV=production (yes, that's exactly what I need). This way I achieve that backpack finds all the necessary files, but the page is displayed WITHOUT STYLES and other resources. Here is screenshots for case "APP_ENV=production, APP_URL=http://nginx"
Here is my nginx.conf:
`events {
} http { server { listen 80; server_name localhost; root /var/www/next/public;
} }`
and here is my docker-compose.yml
` version: "3"
services: nginx: image: nginx ports:
I've been doing this for the 3rd day and I really need help :( Thanks everyone