Sha256: e4c93c350d119a46580c86b5fb1d240d6fac80d714d73963a68f3f1870ef21f9

Contents?: true

Size: 1.1 KB

Versions: 36

Compression:

Stored size: 1.1 KB

Contents

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/ext/nginx" +
    " --with-http_ssl_module" +
    " --with-http_gzip_static_module" +
    " --with-http_stub_status_module" +
    " --with-http_spdy_module" +
    " --with-ipv6" +
    " --with-debug"
  sh "sed", "-E", "-i", 's/ -O[0-9]? / -ggdb /g', "objs/Makefile"
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
passenger-4.0.60 dev/vagrant/nginx_rakefile
passenger-5.0.18 dev/vagrant/nginx_rakefile
passenger-5.0.17 dev/vagrant/nginx_rakefile
passenger-5.0.16 dev/vagrant/nginx_rakefile
passenger-5.0.15 dev/vagrant/nginx_rakefile
passenger-5.0.14 dev/vagrant/nginx_rakefile
passenger-5.0.13 dev/vagrant/nginx_rakefile
passenger-5.0.11 dev/vagrant/nginx_rakefile
passenger-5.0.10 dev/vagrant/nginx_rakefile
passenger-5.0.9 dev/vagrant/nginx_rakefile
passenger-5.0.8 dev/vagrant/nginx_rakefile
passenger-5.0.7 dev/vagrant/nginx_rakefile
passenger-5.0.6 dev/vagrant/nginx_rakefile
passenger-5.0.5 dev/vagrant/nginx_rakefile
passenger-5.0.4 dev/vagrant/nginx_rakefile
passenger-5.0.3 dev/vagrant/nginx_rakefile
passenger-5.0.2 dev/vagrant/nginx_rakefile
passenger-5.0.1 dev/vagrant/nginx_rakefile
passenger-5.0.0.rc2 dev/vagrant/nginx_rakefile
passenger-5.0.0.rc1 dev/vagrant/nginx_rakefile