For the purpose of rebuilding app, is there any way to make chown
on /shared/uploads
directory more efficient? Is there any workaround?
https://github.com/discourse/discourse_docker/blob/7440820f554b3db7d8ab5c2970debe64b3a70d57/templates/web.template.yml#L105
Currently this line alone takes more than 10 minutes (200.000+ uploads). Without it, rebuild would be reasonably quick.
5 Me gusta
I remember this coming up before @mpalmer is there any fancy “skip these files if the permissions on them already look correct” option for that command?
2 Me gusta
mpalmer
(Matt Palmer)
13 Marzo, 2020 01:25
3
Yes, probably what caused this line to appear in web.template.yml
:
find $home ! -user discourse -exec chown discourse {} \+
In this case, I think the command would be something like
find /shared/log/rails /shared/uploads /shared/backups /shared/tmp ! -user discourse -or ! -group www-data -exec chown discourse:www-data {} \+
3 Me gusta
Awesome, anything we can do to make it so?
1 me gusta
system
(system)
Cerrado
12 Abril, 2020 02:47
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.