- ruby-2.2.6
- path:
/usr/local/bin/ruby
- gem_path:
/usr/local/lib/ruby/gems/2.2.0/bin
- path:
- nginx
- version:
1.11.0
- path:
/usr/local/nginx/sbin/nginx
- src:
/usr/local/nginx
- modules:
- passenger
- version:
4.0.57
- path:
/usr/local/lib/ruby/gems/2.2.0/gems/passenger-4.0.57/
- Note: You can get the passenger path by running
$(passenger-config --root)
- version:
- pagespeed
- passenger
- version:
...
http {
...
default_type application/octet-stream;
include /usr/local/nginx/conf/mime.types;
pagespeed on;
pagespeed FileCachePath /rubyapp/tmp/ngx_pagespeed_cache;
passenger_root /usr/local/lib/ruby/gems/2.2.0/gems/passenger-4.0.57/locations.ini;
passenger_ruby /usr/local/bin/ruby;
...
}
...
Nginx commands:
- start nginx with custom config file
/usr/local/nginx/sbin/nginx -c $APP_DIR/config/nginx.conf
- Check nginx status or stop or to reload
/usr/local/nginx/sbin/nginx -s (stop|status|reload)
Operating System/Base Image: Debian Jessie
User: root
Home directory: /rubyapp