Capistrano deploy flow outline

Official flow reference: http://capistranorb.com/documentation/getting-started/flow/

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

Restar server.

 

Deploy:finishing

Logs deployment to revisions.log

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s