Sha256: 0ce6369ab47d1d899990e2622af79bb75b4287a77735b702b714dabc1a24c648

Contents?: true

Size: 1.09 KB

Versions: 11

Compression:

Stored size: 1.09 KB

Contents

require 'fingercap/recipes'

Capistrano::Configuration.instance(:must_exist).load do
  default_run_options[:pty] = true
  
  set :runner, 'app'
  set :user,   'deploy'
  set :domain, 'miller.fngtps.com'
  set :deploy_to, "/var/www/#{application}"
  
  role :web, domain
  role :app, domain
  role :db,  domain, :primary => true
  
  namespace :deploy do
    desc "Stop the application (empty operation on Miller)"
    task :stop do
    end
    
    desc "Start the application"
    task :start do
      apache.restart
    end
    
    desc "Restart the application"
    task :restart do
      passenger.restart
    end
    
    desc "Make sure the permissions are correct for all the directories"
    task :fix_permissions do
      try_sudo "chown -R #{user}:wheel #{deploy_to}"
      try_sudo "chown -R #{fetch(:runner, "app")}:wheel #{shared_path}"
    end
    
    namespace :db do
      desc "Create the production database defined in config/database.yml."
      task :create do
        rake = fetch(:rake, "rake")
        run "cd #{current_path}; #{rake} RAILS_ENV=production db:create"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fingercap-0.4.4 lib/fingercap/configurations/miller.rb
fingercap-0.4.3 lib/fingercap/configurations/miller.rb
fingercap-0.4.1 lib/fingercap/configurations/miller.rb
fingercap-0.4 lib/fingercap/configurations/miller.rb
fingercap-0.3.4 lib/fingercap/configurations/miller.rb
fingercap-0.3.3 lib/fingercap/configurations/miller.rb
fingercap-0.3.2 lib/fingercap/configurations/miller.rb
fingercap-0.3.1 lib/fingercap/configurations/miller.rb
fingercap-0.1 lib/fingercap/configurations/miller.rb
fingercap-0.2.1 lib/fingercap/configurations/miller.rb
fingercap-0.2 lib/fingercap/configurations/miller.rb