F
Filament3mo ago
Fly

Filament Deploy

Hello, iam using filament as a panel admin for my apps, but when i deploy it the infolist(the pop up modal in the table) and the image upload field is somehow broken(it cant upload a file and the filed also turn back to default html field)
No description
32 Replies
Bruno Pereira
Bruno Pereira3mo ago
are there any errors on the console?
Fly
FlyOP3mo ago
i got this errors
No description
Bruno Pereira
Bruno Pereira3mo ago
change the app_url to https in the .env file and probably asset_url too.
Fly
FlyOP3mo ago
whre do i change the asset_url? i already change the app_url
Bruno Pereira
Bruno Pereira3mo ago
in the env file dont forget to run npm run build and try to clear the caches
Fly
FlyOP3mo ago
should i add a new line?
Bruno Pereira
Bruno Pereira3mo ago
yes
Fly
FlyOP3mo ago
its working thank u so much
Bruno Pereira
Bruno Pereira3mo ago
Yey! nice
Fly
FlyOP3mo ago
@Bruno Pereira bro, can i ask again? i got a problem i cant upload the image, it stuck on "uploading"
Bruno Pereira
Bruno Pereira3mo ago
what disk you're using? local disk?
Fly
FlyOP3mo ago
how do i know it?
Bruno Pereira
Bruno Pereira3mo ago
in the env file something like filesystem_disk or alike
Fly
FlyOP3mo ago
what should i change it for? my app url?
Bruno Pereira
Bruno Pereira3mo ago
no run php artisan storage:link you probably need to create the sym link
Fly
FlyOP3mo ago
whats that?
Bruno Pereira
Bruno Pereira3mo ago
a command to run in the project folder on the server
Fly
FlyOP3mo ago
i already run this
Bruno Pereira
Bruno Pereira3mo ago
did it give an error or it was ok?
Fly
FlyOP3mo ago
livewire.js?id=38dc8241:612 Mixed Content: The page at 'https://panel.luxcinema.my.id/admin/films/1/edit' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://panel.luxcinema.my.id/livewire/upload-file?expires=1732905662&signature=f6abb8f83652efd41d52613b50539e95bda18c0dba4f581cad53a767b590c9f7'. This request has been blocked; the content must be served over HTTPS. it give this error
Bruno Pereira
Bruno Pereira3mo ago
did you put the asset_url the same as the app_url?
Fly
FlyOP3mo ago
yes
Bruno Pereira
Bruno Pereira3mo ago
try php artisan optimize:clear & php artisan filament:optimize-clear
Fly
FlyOP3mo ago
i already run this
Bruno Pereira
Bruno Pereira3mo ago
Then I'm out of ideas for that one. Never happened to me sorry
Fly
FlyOP3mo ago
i have another clue, so when its uploading it using http so it get blocked, i do use https on my site. do you know something?
Bruno Pereira
Bruno Pereira3mo ago
it should be fixed with app_url and asset_url with https
Fly
FlyOP3mo ago
yea its https already can u tell me what to add and change in the .env when iam trying to deploy an app
Bruno Pereira
Bruno Pereira3mo ago
if it's production you must add or change APP_ENV=change to something other than local (normally it's prod or production) APP_DEBUG=false the rest is based on what your project is using
Fly
FlyOP3mo ago
okay thank u very much man
Bruno Pereira
Bruno Pereira3mo ago
no prob! Hope your problem gets fixed! Best of luck
Fly
FlyOP3mo ago
thank you so much for helping

Did you find this page helpful?