Sha256: ff102cedf48b70842de99d1fbb0009ebd918aa3589314d693056e3f24c10c22e

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

require 'bundler/capistrano'
set :rvm_ruby_string, '2.0.0'
require "rvm/capistrano"

load "config/recipes/base"
load "config/recipes/unicorn"

default_run_options[:pty] = true
set :application, '<%= @application_name %>'
set :repository,  'git@bisplug.com:<%= @application_name %>.git'
set :scm, :git

set :deploy_to,   '/home/deploy/<%= @application_name %>'
set :user,        'deploy'
set :branch,      'master'
set :rails_env,   'production'
set :migrate_env, 'production'
set :use_sudo, false
set :deploy_via, :remote_cache
set :db_local_clean, true
set :locals_rails_env, "development"
set :server_address, "<%= @application_name %>.pixelforcesystems.com.au"

# server "<%= @application_name %>.com.au", :app, :web, :db, :primary => true

# if you want to clean up old releases on each deploy uncomment this:
after "deploy:restart", "deploy:cleanup"
after 'deploy:restart', 'unicorn:restart'

# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
  task :start do ; end  
  task :stop do ; end  
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "cd '/home/deploy/<%= @application_name %>/current' ; bundle exec rake db:migrate db:seed RAILS_ENV=production"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pixelforce_cms-0.9.9.8 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.7 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.6 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.5 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.4 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.3 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.2 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.9.1 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.8 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.7 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.5 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.4 lib/generators/pixelforce_cms/templates/deploy.rb
pixelforce_cms-0.9.2 lib/generators/pixelforce_cms/templates/deploy.rb