-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildpack support for Laravel 8 #366
Comments
Out of curiosity, why do you suspect the symlink is an issue? It seems to be loading other files from there OK. Where is that class expected to live? Also, have you tried using HTTPD as the web server? The default will be PHP's built-in server. Some frameworks expect HTTPD because they include https://paketo.io/docs/buildpacks/language-family-buildpacks/php/#web-server-configuration |
Disregard that. I was able to reproduce and get this error:
which looks like something is trying to load the file with a relative path, but that path doesn't exist there because things are relative from the symlink not from the |
So there is a fragile, but pretty easy way to make this work. You can symlink back to the app directory. If you add a file called
If you hit other similar issues, just keep adding symlinks in the same way so that PHP can find what it needs. Unrelated note: to run your demo app, I also needed to add the Some notes on this...
|
@dmikusa-pivotal Hello from cf-for-k8s. I have a user facing issues with a Laravel app built with the PHP buildpack via Kpack. When I try to follow the same steps, I get 500 codes when trying to visit the manifest.yml
buildpack.yml
I add the .profile file you mentioned. While Kpack might not be your area of expertise, it is still using Paketo Buildpacks to construct the application image, so I was hoping you'd have some thoughts. |
@Birdrock what do you see in the server logs when the 500 happens? It should tell you why it's complaining. The Hope that helps! |
Hi @dmikusa-pivotal, I should have followed the link to the bug you reported. the missing OpenSSL extension seems to have been the problem. Thanks for the followup! |
@paketo-buildpacks/php-maintainers This has been open for a while. Is there a need for a better solution than the workaround @dmikusa-pivotal offered? Would this problem be easier to fix after the PHP buildpack is restructured? |
Hello, I'm trying to build Llaravel 8 with php buildpacks. Here is the step.
composer create-project --no-cache --prefer-dist "laravel/laravel:8.0" laravel
buildpack.yml
--- composer: vendor_directory: vendor php: version: 7.4.* webdirectory: public
Here is the log when I acess
localhsot:8080
If my understanding is correct this problem is caused by creating a symlink of the vendor directory during the build process and ends up with autoloading failure. It would be great if you can look into this.
The text was updated successfully, but these errors were encountered: