Sha256: ab3d578ba4fb615b3b4442cefb48338e0ef8314c3ad4acb06e4e8ea4de10f178
Contents?: true
Size: 660 Bytes
Versions: 41
Compression:
Stored size: 660 Bytes
Contents
# Reference http://www.modrails.com/documentation/Users%20guide%20Nginx.html # 'nginx-extras' is the "everything" install, https://wiki.debian.org/Nginx apt_package 'nginx', 'nginx-extras' do depends_on 'phusion-repository' # Must use nginx from phusion repo to automatically get passenger integration and the latest version action('start') { sudo 'service nginx start' } action('stop') { sudo 'service nginx stop' } action('restart') { trigger('nginx:running') ? sudo('service nginx restart') : trigger('nginx:start') } action('running') { run('ps aux | grep [n]ginx') =~ /nginx: master process/ } action('reload') { sudo 'pkill -HUP nginx' } end
Version data entries
41 entries across 41 versions & 1 rubygems