Support the ongoing development of Laravel.io →
Installation Configuration

How are you supposed to deploy to production if the routes.scanned.php file is in .gitignore? I deployed via git and it ignored all the routes. Is there a production artisan script that's supposed to be run?

Last updated 3 years ago.
0

run php artisan route:scan to generate routes.scanned.php

Last updated 3 years ago.
0

Sure, I've done that, locally. I shouldn't have to run that on a production server though. I should just be able to "git pull" and have it be working.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.