Sha256: 30c996a53657883bd99a29003284fe0836d1530922df38b79377f127e3c5ce98
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
require 'deprec-core' Capistrano::Configuration.instance(:must_exist).load do namespace :deprec do namespace :rack do set :rack_env, 'production' desc "Install Rack stack on Ubuntu server (8.04, 10.04)" task :install_stack do top.deprec.git.install top.deprec.ruby.install # Uses ruby_vm_type gem2.install 'bundler' # Some things Rails needs apt.install( { :base => %w(libmysqlclient15-dev sqlite3 libsqlite3-ruby libsqlite3-dev libpq-dev) }, :stable) top.deprec.web.install # Uses web_server_type top.deprec.app.install # Uses app_server_type # top.deprec.rails.install top.deprec.logrotate.install # top.deprec.monit.install # Not using monit lately end desc "Generate config files for rack app." task :config_gen do top.deprec.web.config_gen_project top.deprec.app.config_gen_project end desc "Push out config files for rack app." task :config do top.deprec.web.config_project top.deprec.app.config_project end desc "Install debs listed in :packages_for_project" task :install_packages, :roles => :app do if packages_for_project apt.install({ :base => packages_for_project }, :stable) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deprec-3.1.0.rc12 | lib/deprec/recipes/rack.rb |
deprec-3.1.0.rc11 | lib/deprec/recipes/rack.rb |