Sha256: 1c9288cf4377f2e1bc3690395982560a187000f57d79a8c74ca406d9d7eaac58

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

## nginx.rb
#
# Adds capistrano3/nginx specific variables and tasks

namespace :load do
  task :defaults do

  end
end

# Adds some task on complement the capistrano3-nginx tasks
# This tasks are under the negroku namespace for easier identification
namespace :negroku do

    namespace :nginx do
        # Reload or restart unicorn after the application is published
        after 'deploy:publishing', 'restart' do
          invoke 'nginx:site:add'
          invoke 'nginx:site:enable'
          invoke 'nginx:reload'
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
negroku-2.0.0.pre1 lib/negroku/tasks/nginx.rake