4 ms·
> an application should never be able to replace itself with "random code" to be executed. To clarify: it doesn't, nor has it ever worked that way. You have to
by mholt 5y ago
> an application should never be able to replace itself with "random code" to be executed.
To clarify: it doesn't, nor has it ever worked that way. You have to be the one to do that (or someone with privileges to write to that file on disk). Most production setups don't give Caddy that permission. And you have to trigger the upgrade too.
- eliaspro 5y agoOk, this explains a lot and also clearly shows I never used this feature :) I always assumed it would be the Caddy process itself taking care of downloading the update & replacing the binary, before restarting it.
- mholt 5y agoCaddy 2 can do that at least, but it's something you have to command it to do. :)