Open IvanSerpa opened 1 year ago
@IvanSerpa I've not been able to reproduce this. Does it still occur for you?
@simonhamp I've actually encountered that hot reloading doesn't work if the App name is Laravel. So there might be something to this. Reproduction:
@vite
to welcome.blade.phpnpm run dev
php artisan native:serve
With blade changes (html content) you must restart the dev server and css/js doesn't actually change unless you run npm run build
.
If you change the app name suddenly everything works as intended.
@Dalovec I'm not able to reproduce what you're seeing, but that feels like a separate issue to me.
@IvanSerpa for production builds, 500 errors should get logged into [APPDATA]/storage/logs/*
- do you see any errors there?
What happened?
The executable generated by
php artisan native:build linux
only renders the generic "500 SERVER ERROR" page.php artisan native:serve
renders the page correctly. ChangingAPP_NAME
in .env to anything other than "Laravel" bypasses the issue and the page renders correctly.How to reproduce the bug
Fresh install of Laravel. Fresh install of NativePHP. Leave APP_NAME=Laravel in .env file. Run
php artisan native:build linux
. Run the executable.Package Version
0.3.3
PHP Version
8.2.8
Laravel Version
10.17.1
Node Version
20.4.0
Which operating systems does with happen with?
Linux
Notes
Changing
debug
totrue
in config/app.php makes the executable generated byphp artisan native:build linux
work even withAPP_NAME=Laravel
, and it doesn't show any errors.