Basecamp guide / Deploy
A release
A release is the bytes a deploy builds, an image, plus the configuration it ran with, recorded in a journal on the machine it went to. fli deploy builds the image over SSH, starts it, waits for the health check, and writes the result into that journal.
fli make:deploy myapp.com myapp.com # Dockerfile + a deploy block in frontier.config.js
fli deploy:local # build, run and health-check the image here first
fli deploy:setup # check the server, install what is missing
fli deploy # build, ship, swap, record
What else it can do
fli deploywith no flag picks the target from the git branch:stageorstagingis stage, anything else is dev--productionand--stagepick the target;--apiand--webship one half;--dryand--planshow the run without doing it--resumecontinues a deploy a previous run did not finish- A release id is content-addressed, so an unchanged redeploy is the same release and a changed one is a new release
deploy.builderbuilds the image once on one machine and ships it to every target- A
serveroflocalhostruns the same pipeline against this machine, which is what the lesson uses - An app with
BASECAMP_APP_IDset is released through its Basecamp:fli deployrunsfli basecamp:deployfor it fli tutor:deployis the lesson that runs all of this for real: a deploy, a change, a second deploy and a revert, needing Docker and git
In depth: deploy:all, deploy:local, tutor:deploy, QUICKSTART