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