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.0.0 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre7 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre6 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre5 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre4 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre3 lib/negroku/tasks/nginx.rake
negroku-2.0.0.pre2 lib/negroku/tasks/nginx.rake