F
Filament2w 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 Pereira2w ago
are there any errors on the console?
Fly
FlyOP2w ago
i got this errors
No description
Bruno Pereira
Bruno Pereira2w ago
change the app_url to https in the .env file and probably asset_url too.
Fly
FlyOP2w ago
whre do i change the asset_url? i already change the app_url
Bruno Pereira
Bruno Pereira2w ago
in the env file dont forget to run npm run build and try to clear the caches
Fly
FlyOP2w ago
should i add a new line?
Bruno Pereira
Bruno Pereira2w ago
yes
Fly
FlyOP2w ago
its working thank u so much
Bruno Pereira
Bruno Pereira2w ago
Yey! nice
Fly
FlyOP2w ago
@Bruno Pereira bro, can i ask again? i got a problem i cant upload the image, it stuck on "uploading"
Bruno Pereira
Bruno Pereira2w ago
what disk you're using? local disk?
Fly
FlyOP2w ago
how do i know it?
Bruno Pereira
Bruno Pereira2w ago
in the env file something like filesystem_disk or alike
Fly
FlyOP2w ago
what should i change it for? my app url?
Bruno Pereira
Bruno Pereira2w ago
no run php artisan storage:link you probably need to create the sym link
Fly
FlyOP2w ago
whats that?
Bruno Pereira
Bruno Pereira2w ago
a command to run in the project folder on the server
Fly
FlyOP2w ago
i already run this
Bruno Pereira
Bruno Pereira2w ago
did it give an error or it was ok?
Fly
FlyOP2w 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 Pereira2w ago
did you put the asset_url the same as the app_url?
Fly
FlyOP2w ago
yes
Bruno Pereira
Bruno Pereira2w ago
try php artisan optimize:clear & php artisan filament:optimize-clear
Fly
FlyOP2w ago
i already run this
Bruno Pereira
Bruno Pereira2w ago
Then I'm out of ideas for that one. Never happened to me sorry
Fly
FlyOP2w 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 Pereira2w ago
it should be fixed with app_url and asset_url with https
Fly
FlyOP2w 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 Pereira2w 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
FlyOP2w ago
okay thank u very much man
Bruno Pereira
Bruno Pereira2w ago
no prob! Hope your problem gets fixed! Best of luck
Fly
FlyOP2w ago
thank you so much for helping
Want results from more Discord servers?
Add your server