Labs64 / NetLicensing-Demo

Labs64 NetLicensing / Demo Application
https://netlicensing.io
MIT License
6 stars 3 forks source link

wrong path or missing files #14

Closed alonbg closed 4 years ago

alonbg commented 4 years ago

Working with docker-compose. When trying to access localhost:80 getting error:

[23-Feb-2020 10:04:58] WARNING: [pool www] child 10 said into stderr: "NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/netlicensing-demo/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/netlicensing-demo/autoload.php on line 17"

docker-compose file maps repo's root to /var/www/netlicensing-demo According to autoload.php on line 17: require __DIR__.'/../vendor/autoload.php'; But there is no vendor/autoload.php in git's root.

kkorotkov commented 4 years ago

Hi alonbg, You must follow all steps in the Run section of README.md, in particular step 4 docker exec netlicensing-demo ./dockerfiles/bin/prj-build.sh. This script will create the vendor/ directory that you couldn't find. Be patient if you run it for the first time, build takes time for downloading and installing components. Once build script finishes, opening http://localhost:80 should work.

PS: Please disregard warnings / errors from the build script - some components need to be updated, but they are still doing their job.