Laravel App with Folio Doesn't Work After Deployment
azrijamil
PROOP

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

  1. Verified that all project files were successfully uploaded to Railway

  2. Confirmed that Filament routes and dashboard are working correctly in production

  3. Checked Railway logs for obvious errors (none found related to routing)

  4. Verified that the Folio service provider is properly registered in config/app.php

  5. Confirmed that my Folio pages are properly organized in the resources/views/pages directory

  6. Ran php artisan optimize:clear as part of the deployment process

Configuration Details

  • Folio Setup: Using the Laravel Folio package with pages in resources/views/pages

  • Build Process: Includes npm run build for frontend assets

  • Route 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

jake
EMPLOYEE

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


Loading...