runcloud use two projects sharing the same media folder

If you have a chance using symlink in your project. E.g your media folder. You might be using a symlink to reference the same media directory.

When I deploy my project to live. I keep hitting `Cannot save image intervention image. NotWritableException in Image.php line 138`

I am sure I am using the same owner for both directories. However it kind of weird to having this error message.

Then I started to trace the path. I tested with andFile::isDirectory File::iswritable. Then I was having open_basedir restriction in effect. File(/) is not within the allowed path(s):

Then this made me proceed to next checking.Finally, I found out this OPEN_BASEDIR issue.

In runcloud they had provided OPEN_BASEDIR for security purpose.

So what you have to do is include your another project repo into. And they have warned you about the risk. Make sure you know what you are doing.

Leave a Reply

Your email address will not be published. Required fields are marked *