Replication causes 500 internal server error

Hello, I am using Replication with filament-fabricator and was facing this issue on production server whenever we created a replica page I made it redirect to the edit page but it always gave me 500 server error because the newly created page id was not found in routes somehow. I figured I always had to run php artisan optimize:clear command to make that page work so I created an observer to run this command everytime the page is created and it works ok but some times the optimize doesn't work and my client gets 500 server error. Please let me know if any of you have faced this situation on production server? Also please let me know how do I fix this issue on production server? The local server works great without any commands. Thank you
2 Replies
dissto
dissto4mo ago
Are you using nginx and php-fpm? If yes, did you restart php-fpm when you made your changes?
mohdaftab
mohdaftabOP4mo ago
Hello, I am using php-fpm it is on shared hosting.
Want results from more Discord servers?
Add your server