stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

Wrong location for webapps in teleserver #104

Open aguinaldoabbj opened 4 years ago

aguinaldoabbj commented 4 years ago

Dear,

By cloning, compiling and running teleserver project as it is, I have found an issue. The apps don't work as expected. The server can be initialized, however apps like the simulator, hub and dashboard cannot be found in the webserver. After some debugging I've found that the webserver expects webapps to be located in "app/htdocs" path in the root of the teleserver code, but this path doesn't exist in the tree. However, as I have found the apps in "htdocs/" directory in the root, a workaround was to copy the entire "htdocs/" directory to a newly created "app/" directory, making apps to be available in "app/htdocs" as the binary expects. And voilà, webapps are now running.