It depends on if whether you have any env specific things you inject. If you don't, you can just commit the files to git. You might want want to manually transfer the files to test, before you add them. Personally I have pusher keys that is env specific, so I compile on production
Aug 12, 2022
1
Level 4
"Vite manifest not found" on production server ...
When I deploy a Laravel 9 project to production, Laravel replies:
Spatie\LaravelIgnition\Exceptions\ViewException: Vite manifest not found at: /var/www/.../public/build/manifest.json in file /var/www/.../vendor/laravel/framework/src/Illuminate/Foundation/Vite.php on line 139
It turns out the files in /public/build folder are not committed in the git repository.
Should I?
-
Install
npmon production server and runnpm run build, or -
Include files (e.g.
manifest.json) of/public/buildfolder into my repository and pull them in production server ...
Please or to participate in this conversation.