Laravel Livewire does not work properly with production environments
I use the barryvdh/laravel-snappy package and the wemersonjanuario/wkhtmltopdf-windows package to generate html into a pdf file. In development mode on Windows (Laragon), it works well without any problems. But when deployed to Railway, it did not work and errors appeared. Here is my snappy config file. And in the development environment, I can upload images, but when deploying the project I cannot upload images. Here is my NIXPACKS_BUILD_CMD. My repo: https://github.com/voduchuy2001/job-box
GitHub
GitHub - voduchuy2001/job-box: Assignment using Laravel 10 + Livewi...
Assignment using Laravel 10 + Livewire 3. Contribute to voduchuy2001/job-box development by creating an account on GitHub.
3 Replies
Project ID:
4b872683-1e61-46eb-912f-29dc8d942c90
4b872683-1e61-46eb-912f-29dc8d942c90
railway does not run Windows, they run Linux, your app shouldn't be hard coded to depend on windows binaries, there are a few threads on how to install that html to pdf tool on Railway so please search for those threads
also, you are force seeding your database, so I'd like to note that railway is not responsible for any data loss than you may cause