Sha256: 05b40d2a2d2649838a9588fc95bb5e79352d79994697384a4b5a6992d1ee5c7f

Contents?: true

Size: 928 Bytes

Versions: 24

Compression:

Stored size: 928 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' if ENV['DEPLOY_DB']

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

24 entries across 24 versions & 1 rubygems

Version Path
smartkiosk-server-0.12.1 config/deploy.rb
smartkiosk-server-0.12 config/deploy.rb
smartkiosk-server-0.11.11 config/deploy.rb
smartkiosk-server-0.11.10 config/deploy.rb
smartkiosk-server-0.11.9 config/deploy.rb
smartkiosk-server-0.11.8 config/deploy.rb
smartkiosk-server-0.11.7 config/deploy.rb
smartkiosk-server-0.11.6 config/deploy.rb
smartkiosk-server-0.11.5 config/deploy.rb
smartkiosk-server-0.11.4 config/deploy.rb
smartkiosk-server-0.11.3 config/deploy.rb
smartkiosk-server-0.11.2 config/deploy.rb
smartkiosk-server-0.11.1 config/deploy.rb
smartkiosk-server-0.11 config/deploy.rb
smartkiosk-server-0.10.19 config/deploy.rb
smartkiosk-server-0.10.18 config/deploy.rb
smartkiosk-server-0.10.17 config/deploy.rb
smartkiosk-server-0.10.16 config/deploy.rb
smartkiosk-server-0.10.15 config/deploy.rb
smartkiosk-server-0.10.14 config/deploy.rb