This is a sample rails source tree.
- Build application images on the server where the app runs
- Use capistrano to fetch source and organize tasks
- Log container IDs and stop the previous app container
builds an application image. runs after deploy:updating.
runs the application container. sets the container id as cid
. this task is supposed to be invoked in deploy:restart
.
stops the last container in the containers.log (see below.)
logs container ids and source SHA-1 in containers.log
file.
You have to write a task that configure your web server at the end of deployments.
An example is included in the deploy.rb
as a comment.