Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 505 Bytes

cookbook.md

File metadata and controls

35 lines (26 loc) · 505 Bytes

Cookbook

Multi environment deploy

# deploy.rb

set :domain, '...'

task :staging do
  set :deploy_to, 'home/deploy/www/app-staging/'
  set :rails_env, 'staging'
  set :branch, 'develop'
end

task :production do
  set :deploy_to, 'home/deploy/www/app/'
  set :rails_env, 'production'
  set :branch, 'master'
end

task :deploy do
  ...
end
$ mina staging deploy
$ mina production deploy

* feel free to add your own recipes