Sha256: c948eae48e26c520792d4768bf0f3fc445806500ec7739ecd8c9038a21356360

Contents?: true

Size: 908 Bytes

Versions: 13

Compression:

Stored size: 908 Bytes

Contents

require 'bundler/capistrano'
require 'sidekiq/capistrano'
require 'capistrano/ext/multistage'

set :stages, %w(roundlake-passenger roundlake-trinidad mkb mkb-test)
set :default_stage, 'roundlake-passenger'
set :application, 'smartkiosk'

on :start do
  set :rails_env, 'production'
end

set :repository,  'git@github.com:smartkiosk/smartkiosk-server.git'

set :keep_releases, 1

set :use_sudo, false
set :user, "deployer"

set :deploy_to, "/home/deployer/www/#{application}"

after 'deploy:update_code', 'deploy:configure'
before 'deploy:create_symlink', 'deploy:install'

namespace :deploy do
  task :configure do
    run "ln -f #{shared_path}/config/database.yml #{release_path}/config/database.yml"
  end

  task :install do
    run "cd #{release_path}; bundle exec rake db:install RAILS_ENV=#{rails_env} SEED_TEST=true"
  end

  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
smartkiosk-server-0.10.9 config/deploy.rb
smartkiosk-server-0.10.8 config/deploy.rb
smartkiosk-server-0.10.7 config/deploy.rb
smartkiosk-server-0.10.5 config/deploy.rb
smartkiosk-server-0.10.4 config/deploy.rb
smartkiosk-server-0.10.3 config/deploy.rb
smartkiosk-server-0.10.2 config/deploy.rb
smartkiosk-server-0.10.1 config/deploy.rb
smartkiosk-server-0.10.0 config/deploy.rb
smartkiosk-server-0.9.3 config/deploy.rb
smartkiosk-server-0.9.2 config/deploy.rb
smartkiosk-server-0.9.1 config/deploy.rb
smartkiosk-server-0.9.0 config/deploy.rb