You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change deletes compiled templates when migrating up. Because getCompiledTemplatesPath creates the directory if it doesn't exist, performing the migration as a user other than the one running the php/web process can prevent Craft from being able to write to the directory later on.
One situation where this could easily happen is running craft within a docker container with a non-persistent storage directory and migrations are run before starting the php process.
The workaround is to correct the permissions after running migrate/up.
Steps to reproduce
rm -rf storage/runtime
Run ./craft migrate/up --interactive=0 as root
Start the php process
Additional info
Craft version: 3.0.3.1
PHP version: 7.2
Database driver & version: MySQL 5.7
Plugins & versions: N/A
The text was updated successfully, but these errors were encountered:
Thanks for reporting that! Going forward, Craft is no longer going to create directories in the process of clearing them, if that’s the only thing it needed to do with the directory.
Description
This change deletes compiled templates when migrating up. Because
getCompiledTemplatesPath
creates the directory if it doesn't exist, performing the migration as a user other than the one running the php/web process can prevent Craft from being able to write to the directory later on.One situation where this could easily happen is running craft within a docker container with a non-persistent storage directory and migrations are run before starting the php process.
The workaround is to correct the permissions after running migrate/up.
Steps to reproduce
rm -rf storage/runtime
./craft migrate/up --interactive=0
as rootAdditional info
The text was updated successfully, but these errors were encountered: