Basecamp guide / Deploy
Redeploying and reverting
Run fli deploy again to ship a new release; the journal on the machine records each attempt and which one is serving. To go back, fli deploy:revert restores a release and the configuration it ran with, and fli deploy:rollback puts the previous container or image back.
fli deploy:journal # what was deployed, and which release is serving
fli deploy:revert # what a revert would do and refuse, touching nothing
fli deploy:revert # restore the previous release and its configuration
What else it can do
fli deploy:journal --stepsshows the steps of the latest transition,--transition <id>one by id,--limithow many to list and--jsonemits rows- The
servingmark sits on the latest transition that succeeded, so a failed deploy leaves the previous release marked fli deploy:revert --to <release id>goes to a named release instead of the one before- A revert is a transition of its own, so a revert can itself be reverted
fli deploy:revertrefuses by name, prints every refusal at once, and names the flag that overrides each:--past-pivot,--past-retentionand--onto-current-configurationfli deploy:rollbackrestores the replaced container, or offers the previous image when there is none, with no journal, and works on a target that never deployed through a journalfli deploy:rollback --webor--apirolls back one half, and--dryshows the run- Revert restores the pair, a release and its configuration; rollback restores only the image
In depth: deploy:journal, deploy:revert, deploy:rollback