Sha256: bc2687af43277681975e750ef84770118e56e70f4217450c7712e8fac1373b8d

Contents?: true

Size: 662 Bytes

Versions: 4

Compression:

Stored size: 662 Bytes

Contents

namespace :deploy do
  task :setup_env do
    on roles(:web) do
      within release_path do
        execute(:cp, "~/.#{fetch(:application)}.yml config/application.yml")
        execute(:cp, "~/.#{fetch(:application)}.env .env")
        execute(:cp, "~/.#{fetch(:application)}.foreman .foreman")
      end
    end
  end
  before :updated, :setup_env

  task :restart do
    invoke 'foreman:export'
    invoke 'foreman:restart'
  end

  desc 'reload the database with seed data'
  task :seed do
    on primary :db do
      within current_path do
        with rails_env: fetch(:stage) do
          execute(:rake, 'db:seed')
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kratos-1.0.3 templates/deploy.rake
kratos-1.0.2 templates/deploy.rake
kratos-1.0.1 templates/deploy.rake
kratos-1.0.0 templates/deploy.rake