What do you mean “do not work”? We can’t help you if we don’t know what’s wrong…
Livewire | Filament Headaches on Producton
Anybody successfully launch the Admin-Dash Filament package on a production nginx server? I have been banging my head against the wall for 11 hours and 45 minutes...(no exaggeration)
The assets work perfectly fine locally but do not work on server. I tried everything on this page: https://github.com/livewire/livewire/issues/242#issuecomment-948054946
Does anybody know any solutions or have any experience with Filament of Nginx production? Thanks
*Unfortunately Filament's support group is not a proper forum, rather that chatty gamer's platform "discord" - an unfortunate poor choice for support *
Finally, after 6 months I got this headache sorted out. While I didn't work on this for 6 straight months, this annoying issue consumed days of my working existence.
@thamnees , @shubhamchugh , @devs-x
Here is what I did to get filament working on runcloud. By the way here is my setup because I'm sure things could change with different version. The modern web stack has really become a stack of cards. very sensitive and easy to break everything. My stack:
- Laravel 10
- Filament 2
- Runcloud / Vultr / Ubuntu / Nginx
My fix: comment out or remove front assets in main .gitignore
#/public/build
commit and push
On runcloud they disabled ignore_user_abort function by default.
For some reason runcloud disables lots of php functions that are necessary for many php packages. But you can re-enable them by removing them from the textarea list they provide under:
> settings > php settings > disable_functions. - remove "ignore_user_abort" and click "Update PHP Settings"
That's it.
With the front end assets pushed through git and the ignore_user_abort function enabled everything seems to be working fine.
Please or to participate in this conversation.