a year ago
I have deployed my Laravel 11 application to Railway, but the Folio routes are not working in the production environment despite functioning correctly on my local setup. When accessing the Folio routes on the deployed version, they return 404 errors. Interestingly, Filament admin panel routes are working perfectly in production.
Environment Details
Laravel Version: 11.x
PHP Version: 8.2
Deployment Platform: Railway
Local Environment: Works perfectly
Production Environment: Only Folio routes return 404 errors
Packages: Laravel Folio, Filament
Steps Already Taken
Verified that all project files were successfully uploaded to Railway
Confirmed that Filament routes and dashboard are working correctly in production
Checked Railway logs for obvious errors (none found related to routing)
Verified that the Folio service provider is properly registered in
config/app.phpConfirmed that my Folio pages are properly organized in the
resources/views/pagesdirectoryRan
php artisan optimize:clearas part of the deployment process
Configuration Details
Folio Setup: Using the Laravel Folio package with pages in
resources/views/pagesBuild Process: Includes
npm run buildfor frontend assetsRoute Caching: Not explicitly enabled
Filament: Working correctly in both environments
Additional Information
The application works flawlessly in my local environment with the exact same codebase. Only the Folio routes are broken in production, while Filament admin routes continue to function as expected. This suggests the issue might be specific to how Folio routes are registered or handled in the Railway environment.
1 Replies
a year ago
Apologies but this looks like an issue with the application level code. Due to volume, we can only answer platform level issues here
I've made this thread public so that the community might be able to help
Status changed to Awaiting User Response Railway • 11 months ago