NativePHP for Desktop app with Herd (nginx) works in dev, but .exe build throws 500 error #608
Unanswered
bimaalbertus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a NativePHP desktop application with Electron, and everything works perfectly during development using Herd (nginx).
However, after running php artisan native:build win, the application successfully builds into a .exe file, but when I run it, it throws a 500 internal server error.
Some context:
What I've tried:
How do I properly reference and persist the SQLite database in a NativePHP + Electron build, especially when dev uses Herd but production runs outside of nginx?
Would really appreciate guidance on best practices for managing SQLite database files in a built NativePHP application.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions