Slide 304
Slide 304 text
chef.recipe "common"
dimg_group {
git.add "/" { to "/app" }
chef.module "rails", "~> 1.0"
dimg "backend" {
artifact {
chef.module "rails_assets", "~> 1.0"
artifact_depends_on "/app/assets", "Gemfile*"
export "/app/public/assets" { after :setup }
}
chef { module "rails_backend", "~> 1.0"; recipe "backend" }
}
dimg "worker" {
chef { module "rails_sidekiq", "~> 1.0"; recipe "worker" }
}
}
dimg "frontend" {
chef { module "nginx", "~> 1.0"; recipe "frontend" }
}