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 « J'aime »
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 « J'aime »
mpalmer
(Matt Palmer)
Mars 13, 2020, 1: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 « J'aime »
Awesome, anything we can do to make it so?
1 « J'aime »
system
(system)
A fermé ce sujet ()
Avril 12, 2020, 2:47
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.