Open jaromic opened 6 years ago
Same Problem. i guess this project is little bit death ?
Found the solution by carefully reading the docs (https://github.com/afaqurk/linux-dash#if-using-php) again:
...
So in my case, demo.js was picked up by accessing http://HOSTNAME/linux-dash/. Real data was shown by accessing http://HOSTNAME/linux-dash/app/
I know but it doesn't work with PHP 7.2 or 7.3. No data is read. the Dash version 1 runs ...
i found the problem The app/server/linux_json_api.sh need 744 chmod rights
@r0max solved the issue. I've pointed my webserver to / by accident and it loaded the demo data. changing to /app solved the issue.
Summary:
This issue is similar to #428 and #434, but reading those issues has not helped me.
My goal is to run linux-dash in Apache/PHP configuration. I tried pointing apache to both
Either way, the result is the same - demo data is displayed instead of real data.
Steps to reproduce:
/app
(relative to the worktree root)/
URL in the browserExpected behavior:
Actual behavior:
Environment:
Notes:
I also tried running the gulpfile as suggested in the other issues. It seems to block after this output (probably listening):
The shell API seems to return the correct JSON data (e.g. users). So the problem must be something rather straightforward somewhere in the JS.