[Symfony] Problem z routingiem na produkcji |
[Symfony] Problem z routingiem na produkcji |
22.06.2022, 12:20:15
Post
#1
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 17.06.2014 Ostrzeżenie: (0%) |
Witam,
Mam problem z routingiem Symfony 6 na produkcji. Metoda index działa, homepage się wyświetla, a nie działają pozostałe, images i videos, które są w tym samym kontrolerze, dostaję 404 Page Not Found. Lokalnie wszystko działa. Zmieniłem w .env APP_ENV=prod do tego yarn encore production Prośba o pomoc, czy coś jeszcze muszę ważnego zrobić żeby mi routing zaczął działać produkcyjnie? Mam Controller:
routes.yaml
|
|
|
22.06.2022, 13:37:48
Post
#2
|
|
Grupa: Zarejestrowani Postów: 377 Pomógł: 70 Dołączył: 15.07.2014 Ostrzeżenie: (0%) |
Doinstalowałes apache-pack?
https://symfony.com/doc/current/setup/web_s...figuration.html |
|
|
23.06.2022, 09:45:46
Post
#3
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 17.06.2014 Ostrzeżenie: (0%) |
Instalowałem apache-pack ale miałem już plik .htaccess i wtedy on nie ingeruje w niego
Odinstalowałem apache-pack, usunąłem plik .htaccess i zainstalowałem jeszcze raz apache-pack, wtedy on utworzył swój plik .htaccess i jest ok |
|
|
Wersja Lo-Fi | Aktualny czas: 27.09.2024 - 08:13 |