doctr icon indicating copy to clipboard operation
doctr copied to clipboard

Document the deployment procedure

Open goerz opened this issue 4 years ago • 2 comments

This should clarify some of the details mentioned in the doctr deploy documentation, specifically what "synchronization" is (--no-sync flag), and how --command fits in.

goerz avatar Oct 20 '19 07:10 goerz

Hopefully, I got the procedure right, based on looking over the source code. Let me know if I misunderstood anything.

One question: What is the purpose of the --no-temp-dir flag? It skips the first step, copying the BUILT_DOCS directory, but I can't think of any situation where this would be useful. I think it would cause a crash unless combined with --no-sync. I suppose with --no-temp-dir and --no-sync, a custom --command could take over the entire deployment, but it wouldn't have access to the built documentation (which was stashed away).

goerz avatar Oct 20 '19 07:10 goerz

I don't remember why I added it (see #215). It might have been for the reason you noted so that you can control the deployment yourself if you want. But the stash thing was added later, so it might be broken. It looks like the flag isn't tested, so I'm not surprised if it doesn't work.

asmeurer avatar Oct 21 '19 20:10 asmeurer