Official flow reference: 点击打开链接
An example flow:
Deploy: starting
Rbenv ensures that the version we configured on config/deploy.rb is installed and that it can write on disc.
Checks git repository
Create needed folder tree
/var/www
App_name
Shared
Public
Assets
Releases
Deploy: updating
Clone the whole repo in /var/www/app_name/repo
Creates a new folder date-time named on /var/www/app_name/releases/20140717180754
Copies the project there
Deploy: publishing
Runs bundle install in last release folder
Runs assets:precompile copying our minimized assets to shared/public/assets
Creates a soft link from last release to /var/www/app_name/current
Restart server.
Deploy:finishing
Logs deployment to revisions.log