Sha256: 33466d7cedfe5b36d68e958abab04ca94a2e2c7f2c6e67488cde49af38244b0e

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

# This is a generated file.  Do not modify...or else!  :)

set :stage, :<%= Pvcglue.cloud.stage_name %>
set :rails_env, :<%= Pvcglue.cloud.stage_name %> # workaround for RAILS_ENV= being blank in delayed job tasks
set :deploy_to, '<%= Pvcglue.cloud.deploy_to_app_dir %>'
set :linked_files, ['.env.<%= Pvcglue.cloud.stage_name %>']
set :rvm_ruby_version, '<%= Pvcglue.configuration.ruby_version %>'
<% if Pvcglue.cloud.delayed_job_args %>
set :delayed_job_args, "<%= Pvcglue.cloud.delayed_job_args %>"
<% end %>
set :ssh_options, {port: <%= Pvcglue.cloud.port_in_context(:deploy) %>}

<% Pvcglue.cloud.minions_filtered('web').each do |minion_name, minion| %>
server '<%= minion.public_ip %>', roles: %w{web app db}, user: '<%= minion.remote_user_name %>' # server:  <%= minion_name.to_s %>
<% end %>
<% if Pvcglue.cloud.db_rebuild %>

namespace :deploy do
  Rake::Task["deploy:migrate"].clear_actions # Don't run migrations...just do the reload.
  desc 'Overrides db:migrate to just run db:reload'
  task :migrate => [:set_rails_env] do
    on primary fetch(:migration_role) do
      within release_path do
        with rails_env: fetch(:rails_env) do
          execute :rake, "db:reload"
        end
      end
    end
  end
end
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pvcglue-0.9.1 lib/pvcglue/templates/stage-deploy.rb.erb
pvcglue-0.9.0 lib/pvcglue/templates/stage-deploy.rb.erb