Question

Error when deploying php/node monorepo

Hello, using digitalocean/sample-monorepo .do/app.yaml as a guide I’ve created an app spec for my monorepo Stirreg/do-app-platform-monorepo.

During build everything seems fine, but when deploying I get the following errors in my logs:

api      | 18:26:11 DOCUMENT_ROOT changed to 'public/'
api      | 18:26:11 Using Nginx server-level configuration include 'nginx.conf'
api      | 18:26:12 Assuming 512MB of RAM
api      | 18:26:12 PHP memory_limit is 128M Bytes
api      | 18:26:12 Starting php-fpm with 4 workers...
api      | 18:26:14 [02-Mar-2021 17:26:14] WARNING: Nothing matches the include pattern '/app/.heroku/php/' from /workspace/api/vendor/heroku/heroku-buildpack-php/conf/php/8/php-fpm.conf at line 596.
api      | 18:26:14 Starting nginx...
api      | 18:26:14 nginx: [alert] could not open error log file: open() "/app/.heroku/php/var/log/nginx/error.log" failed (2: No such file or directory)
api      | 18:26:14 2021/03/02 17:26:14 [emerg] 166#0: mkdir() "/app/.heroku/php/var/run/nginx/client_body_temp" failed (2: No such file or directory)
api      | 18:26:14 Process exited unexpectedly: nginx, shutting down...
api      | 18:26:14 Stopping php-fpm...
api      | 18:26:14 Shutdown complete.

I suspect a mismatch in paths when using a source_dir with a monorepo. Is it possible to get this running?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
March 2, 2021
Accepted Answer

👋🏼 @Stirreg

We are aware of this issue relating to deploying PHP applications using source_dir. We’re working on a fix and I’ll post an update here once it’s ready. Sorry for the trouble.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel