Skip to content
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 hardcodes client_body_temp_path to a .heroku path #73

Open
jose-fully-ported opened this issue Jan 3, 2024 · 1 comment
Open

Comments

@jose-fully-ported
Copy link

Hi! I was messing around with the CNB buildpack (to compare it with the v2a-one, featureset-wise) and it seems that building the default heroku/php-getting-started app fails with nginx.

Change the Procfile to this:

web: heroku-php-nginx web/

Then run the following in that repo:

pack build myapp:latest --path .

Finally, run the container:

docker run --rm -it myapp:latest

Here is the output:

Assuming 512MB of RAM
PHP memory_limit is 128M Bytes
Starting php-fpm with 4 workers...
Starting nginx...
nginx: [emerg] mkdir() "/app/.heroku/php/var/run/nginx/client_body_temp" failed (2: No such file or directory)
Process exited unexpectedly: nginx, shutting down...
Stopping php-fpm gracefully...
Shutdown complete.
@kotapeter
Copy link

Temp solution until there is no fix.

web: mkdir -p /app/.heroku/php/var/run/nginx/client_body_temp && heroku-php-nginx web/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants