Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

timgass's avatar

Blade Writing Problem, Heroku

Heroku deploy problem. blade failed to open stream: Read-only file system. I know this is a problem with blade trying to write files. I just wanted to know if it is possible for compile blade into something that doesn't need to write. Also, if not, if anyone knows any good free hosting sites, like heroku, that would let me do this. I just wanted to be able to have a website for one of my projects to live. Thanks!

0 likes
4 replies
EliasSoares's avatar

The web server user must have Write Permission on storage folder as explained on laravel docs:

Directory Permissions

After installing Laravel, you may need to configure some permissions. Directories within the storage and thebootstrap/cache directories should be writable by your web server. If you are using the Homestead virtual machine, these permissions should already be set.

1 like
timgass's avatar

Thanks Elias! I know about the Homestead virtual machine, but I can't say it isn't over my head a bit. I don't think that Heroku allows for write permissions, period. So, I'm thinking that this might be over my head. I am by no means skilled at PHP, and I just wanted to make this work. However, setting up a virtual machine, may be too complex for me.

timgass's avatar

Yes, I did, but unfortunately, this has not worked. I am unsure as to whether it is outdated, or just a problem with blade. Perhaps, there is a way to prep my files for deployment, through laravel or some other tool. However, I have not found it! Thanks for trying, though! Brazil must be fun!

Please or to participate in this conversation.