Sha256: b80bfa2a08b2b94c63293395961ea93305889b19b8adaed3c80ad40152c5b1a1
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
scope :php do set_default :home, ->{ "#{share_dir}/php5" } set_default :php_cgi, ->{ "#{php.home}/bin/php-cgi" } set_default :spawn_fcgi, '/usr/local/bin/spawn-fcgi' set_default :fcgi_run_dir, ->{ "#{run_dir}/fcgi" } set_default :fcgi_address, '127.0.0.1' set_default :fcgi_port, 6666 set_default :fcgi_children, 6 end namespace :php do namespace :fcgi do desc 'Create fcgi running directory.' task :init do mkdir_p("#{run_dir}/fcgi") end desc 'Start fcgi.' task :start => :init do run "#{php.spawn_fcgi} -a #{php.fcgi_address} -p #{php.fcgi_port} -C #{php.fcgi_children} -f #{php.php_cgi} -u #{user} -d #{php.fcgi_run_dir} -P #{php.fcgi_run_dir}/spawn_fcgi.pid > /dev/null" end desc 'Kill fcgi.' task :stop do run 'killall -9 php-fcgi > /dev/null 2>&1 || echo -n "not running"' end desc 'Restart fcgi.' task :restart => :stop do invoke 'php:fcgi:stop' sleep(6) invoke 'php:fcgi:start' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peony-0.3.1 | recipes/php.rake |
peony-0.3.0 | recipes/php.rake |