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
RickDB12mo ago
There is something wrong in your webserver configuration. Search the discord, it has been asked many times before.
Alex Manase
Alex Manase12mo 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 Manase12mo 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
toghrulcalalli12mo ago
my server is debian. i have a lot of project in server. if configure change can it spoil all of my projects?(
RickDB
RickDB12mo ago
Not if you use virtual hosts
Alex Manase
Alex Manase12mo ago
adding these lines in the nginx config shouldn't be a problem
toeknee
toeknee12mo ago
This isn't an issue with filament persay but more than likely your storage. Ensure you have linked your storage too.
toghrulcalalli
toghrulcalalli12mo ago
storage link also did
toeknee
toeknee12mo ago
What have you used to build the servrer
toghrulcalalli
toghrulcalalli12mo 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
toeknee12mo ago
Ok but you haven't provided any information on what web server is in use and how you are deploying them.
toghrulcalalli
toghrulcalalli12mo ago
i dont know my server configuration because sys admin gave me that. i uploaded files with git clone
toeknee
toeknee12mo 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 Manase12mo 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 Manase12mo ago
it's pretty straighforward
toghrulcalalli
toghrulcalalli12mo ago
my project is working only filament not found assets
Alex Manase
Alex Manase12mo 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
toghrulcalalli12mo ago
yes i added and got 302 error