Getting Craft's storage folder to work on Heroku I'm using Heroku to host a Craft 3 site, and it's working fine, apart from the fact that Craft isn't able to write to the /storage folder (or anywhere else, for that matter). Consequently, the Database Backup utility doesn't work and nor is Craft able to write logs. I'm keen to fix both these issues.

Has anyone managed to solve this problem on Heroku? If so, how?
For anyone else trying this: the solution I eventually came up for was to follow these instructions for adding an argument to the Procfile to tell Heroku to tail Craft's log file into the "Logplex" stream.

There might well be situations where Brad's suggestion (using a plugin to write the logs to stderr) is preferable, but I wasn't sure what the implications would be for logs in development (where it's fine for them to be written to the file system). Adding an argument to the Procfile side-steps this issue, since it's only run by Heroku.

My Procfile now looks like this:

web: vendor/bin/heroku-php-nginx -C nginx_app.conf -l storage/logs/web.log web