Sha256: 7c2892a69c80614b7be621ee4598312b262c9e1c65600640f8bd8262143c565d
Contents?: true
Size: 779 Bytes
Versions: 3
Compression:
Stored size: 779 Bytes
Contents
set_default :www_http_port, 80 set_default :www_https_port, 443 set_default :www_paths, {} namespace :nginx do namespace :www do desc "Create www config files." task :init do template("nginx/www.conf.erb", "#{nginx_etc_dir}/www.conf", true) template("nginx/sites-enabled/static.conf.erb", "#{nginx_etc_dir}/sites-enabled/static.http.conf", true) unless www_paths.empty? template("nginx/sites-enabled/php.conf.erb", "#{nginx_etc_dir}/sites-enabled/php.http.conf", true) end [:start, :stop, :reload].each do|t| desc "#{t} nginx www instance." task t do sudo self.send("nginx_#{t}_cmd", :www) end end desc "Restart nginx www instance." task :restart do nginx_restart(:www) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peony-0.1.6 | recipes/nginx/www.rake |
peony-0.1.2 | recipes/nginx/www.rake |
peony-0.1.1 | recipes/nginx/www.rake |