Sha256: 137516147edc6fc6bc13312ed85805c0b15cb2416656691d807c81f1a67b4052

Contents?: true

Size: 659 Bytes

Versions: 27

Compression:

Stored size: 659 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

        define_logs(:nginx, {
          error: 'nginx-error.log',
          access: 'nginx-access.log'
        })
    end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
negroku-2.5.5 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.5.4 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.5.3 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.5.2 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.5.1 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.5.0 lib/negroku/capistrano/tasks/nginx.rake
negroku-2.4.2 lib/negroku/tasks/nginx.rake
negroku-2.4.1 lib/negroku/tasks/nginx.rake
negroku-2.4.0 lib/negroku/tasks/nginx.rake
negroku-2.3.5 lib/negroku/tasks/nginx.rake
negroku-2.3.4 lib/negroku/tasks/nginx.rake
negroku-2.3.3 lib/negroku/tasks/nginx.rake
negroku-2.3.2 lib/negroku/tasks/nginx.rake
negroku-2.3.1 lib/negroku/tasks/nginx.rake
negroku-2.3.0 lib/negroku/tasks/nginx.rake
negroku-2.2.0 lib/negroku/tasks/nginx.rake
negroku-2.1.0 lib/negroku/tasks/nginx.rake
negroku-2.0.3 lib/negroku/tasks/nginx.rake
negroku-2.0.2 lib/negroku/tasks/nginx.rake
negroku-2.0.1 lib/negroku/tasks/nginx.rake