Filament assets not found in live server

Hello my app working perfect in local. But live server filament admin is not working #❓┊help
18 Replies
RickDB
RickDB2y ago
There is something wrong in your webserver configuration. Search the discord, it has been asked many times before.
Alex Manase
Alex Manase2y ago
Filament
Fix Filament assets not loading in Nginx by Ida Bagus Gede Pramana ...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Alex Manase
Alex Manase2y ago
This helped me If you use Octane you should type:
location ^~ /filament {
try_files $uri $uri/ @octane;
}
location ^~ /filament {
try_files $uri $uri/ @octane;
}
toghrulcalalli
toghrulcalalliOP2y ago
my server is debian. i have a lot of project in server. if configure change can it spoil all of my projects?(
RickDB
RickDB2y ago
Not if you use virtual hosts
Alex Manase
Alex Manase2y ago
adding these lines in the nginx config shouldn't be a problem
toeknee
toeknee2y ago
This isn't an issue with filament persay but more than likely your storage. Ensure you have linked your storage too.
toghrulcalalli
toghrulcalalliOP2y ago
storage link also did
toeknee
toeknee2y ago
What have you used to build the servrer
toghrulcalalli
toghrulcalalliOP2y ago
i did nothing normally which i previous config. i have 9 website all of with voyager admin. working great. i tried filament first time . and result my project admin not working in server. (
toeknee
toeknee2y ago
Ok but you haven't provided any information on what web server is in use and how you are deploying them.
toghrulcalalli
toghrulcalalliOP2y ago
i dont know my server configuration because sys admin gave me that. i uploaded files with git clone
toeknee
toeknee2y ago
Time to speak to your sys admin, it's a linkage issue if the files are generated into the place they should be
Alex Manase
Alex Manase2y ago
@toghrulcalalli you can check how to configure the server on Laravel docs: https://laravel.com/docs/10.x/deployment
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Alex Manase
Alex Manase2y ago
it's pretty straighforward
toghrulcalalli
toghrulcalalliOP2y ago
my project is working only filament not found assets
Alex Manase
Alex Manase2y ago
I know that you mentioned that, but the server does not know what to do with your filament assets.
location ^~ /filament {
try_files $uri $uri/ /index.php?$query_string;
}
location ^~ /filament {
try_files $uri $uri/ /index.php?$query_string;
}
Did you add this line to the nginx config file?
location ^~ /filament {
try_files $uri $uri/ @octane;
}
location ^~ /filament {
try_files $uri $uri/ @octane;
}
Or this if you use Octane.
toghrulcalalli
toghrulcalalliOP2y ago
yes i added and got 302 error

Did you find this page helpful?