PHP 8.2.30
Preview: nginx_rakefile Size: 1.09 KB
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/vagrant/nginx_rakefile

ENV['CC']  ||= 'ccache cc'
ENV['CXX'] ||= 'ccache c++'

desc "Bootstrap Nginx for the first time"
task :bootstrap => :configure do
  sh "make -j2"
  sh "make install"
  sh "rm -f inst/sbin/nginx"
  puts
  puts "--------------------------"
  puts "You're all set! You can start Nginx by running:"
  puts
  puts "  ./start"
  puts
  puts "Nginx can be reached from the host machine on http://127.0.0.1:8100/"
  puts
  puts "You never have to run `rake bootstrap` again. You also never have to " +
    "run `make install`. If you've made changes to the Passenger Nginx module, " +
    "simply run `make && ./start` in /home/vagrant/nginx. The `start` script " +
    "will start the newly compiled Nginx binary directly."
end

desc "Configure Nginx source tree"
task :configure do
  sh "./configure --prefix=/home/vagrant/nginx/inst" +
    " --add-module=/vagrant/src/nginx_module" +
    " --with-http_ssl_module" +
    " --with-http_gzip_static_module" +
    " --with-http_stub_status_module" +
    " --with-http_v2_module" +
    " --with-debug"
  sh "sed", "-E", "-i", 's/ -O[0-9]? / -ggdb /g', "objs/Makefile"
end

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
1.45 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
123 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
71 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
528 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
220 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
662 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
717 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.09 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
771 B lrwxr-xr-x 2026-02-05 09:04:09
Edit Download
3.87 KB lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
236 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).