The chown in /start can take time and messes with the consistency of things like the dokku checks timeouts. My understanding is that it's necessary in case something else (like a dokku plugin) modifies the filesystem after the compile step.
- Is my understand correct?
- Is it necessary?
- Is there a better way we can ensure those post-compile steps don't mess up permissions, such as by running them under the application user?
- If not, could we deal with this in dokku explicitly as another step of generating the slug before deploy, so that it can be executed between hooks?
The chown in /start can take time and messes with the consistency of things like the dokku checks timeouts. My understanding is that it's necessary in case something else (like a dokku plugin) modifies the filesystem after the compile step.