{"id":275634,"date":"2016-03-08T00:42:24","date_gmt":"2016-03-07T21:42:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275634"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275634","title":{"rendered":"Ruby on Rails. Passenger Quickstart"},"content":{"rendered":"<br \/>\n<h2>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435 8 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043e\u043d\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e\u0447\u043d\u044b\u0435 \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u0440\u0435\u0435 \u043d\u0435 \u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434, \u0430 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430:<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 Passenger \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d:<\/p>\n<ol>\n<li>\u041e\u0431\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e:<br \/>  1.1 \u041f\u0430\u043a\u0435\u0442\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<br \/>  1.2 \u0418\u0437 \u0442\u0430\u0440\u0431\u043e\u043b\u0430.<\/li>\n<li>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 RubyGems. <\/li>\n<\/ol>\n<p>  \u0421\u0430\u043c passenger \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441 3-\u044f \u043a\u043b\u044e\u0447\u0430\u043c\u0438:<\/p>\n<p>  passenger start<br \/>  passenger stop<br \/>  passenger status<\/p>\n<p>  \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447 &#8212;help \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/p>\n<p>  <code>$ passanger start --help<\/code><\/p>\n<p>  \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e. \u0411\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443.<\/p>\n<p>  Passenger \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 apache,nginx, \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u0438\u0439 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 web-\u0441\u0435\u0440\u0432\u0435\u0440. \u0415\u0441\u043b\u0438 \u0432 Rails \u2014 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043e\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 Gemfile, \u0442\u043e &quot;rails server&quot; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u0435\u0433\u043e, \u0430 \u043d\u0435 WEBricks, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u0434\u043b\u044f \u0412\u0430\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0438\u0436\u0435. \u0421\u043c\u044b\u0441\u043b \u043f\u043e\u043b\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u0440\u0430\u0437\u0432\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u043a apache2 \u0438\u043b\u0438 nginx?<\/p>\n<h2>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 \/ <a href=\"https:\/\/www.phusionpassenger.com\/library\/walkthroughs\/start\/ruby.html\">Quickstart: Ruby + Phusion Passenger<\/a> <a name=\"habracut\"><\/a><\/h2>\n<p>  \u042d\u0442\u043e 5-\u0438 \u043c\u0438\u043d\u0443\u0442\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043d\u0430\u0443\u0447\u0438\u0442 \u0432\u0430\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 ruby \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c PhusionPassenger \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. <em>\u0421\u0442\u0440\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043e\u043f\u0438\u0441\u0430\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 RubyGems.(\u043f\u0440\u0438\u043c \u043f\u0435\u0440\u0435\u0432)<\/em> <\/p>\n<ol>\n<li>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Passenger?<\/li>\n<li>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/li>\n<li>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0431\u043e\u0440\u0430 \u0433\u0435\u043c\u043e\u0432 (Updating your gem bundle).<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<br \/>  bundle exec rails server<\/li>\n<li>\u041b\u043e\u0433\u0438.<\/li>\n<li>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/li>\n<li>\u0412\u044b\u0432\u043e\u0434\u044b.<\/li>\n<\/ol>\n<p>  <strong>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Passenger?<\/strong><\/p>\n<p>  Passenger \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (<em>\u0435\u0441\u0442\u044c \u0438 Enterprise \u0432\u0435\u0440\u0441\u0438\u044f \u2014 \u043f\u0440\u0438\u043c \u043f\u0435\u0440\u0435\u0432.<\/em>). \u041e\u043d \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0443, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0438.\u0442.\u0434.<br \/>  Passenger \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043e\u043a \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <em>\u0434\u0430\u043b\u0435\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435<a href=\"https:\/\/www.phusionpassenger.com\/#about\">\u0431\u0430\u0445\u0432\u0430\u043b\u044c\u0441\u0442\u0432\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439<\/a> \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0441 \u0432\u0438\u0434\u0435\u043e.<\/em><br \/>  \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u043e\u0431\u044a\u0435\u043c\u043b\u044e\u0449\u0438\u043c. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e <a href=\"https:\/\/www.phusionpassenger.com\/library\/walkthroughs\/basics\/ruby\/fundamental_concepts.html#unicorn-and-puma\">\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/a>. <em>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043c \u0432\u0430\u0436\u043d\u0435\u0435, \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0441 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f\u043c\u0438.<\/em><\/p>\n<p>  <strong>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/strong><\/p>\n<p>  \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, &quot;hello world.&quot;<br \/>  Rails:<br \/>  <code>$ git clone https:\/\/github.com\/phusion\/passenger-ruby-rails-demo.git $ cd passenger-ruby-rails-demo<\/code><br \/>  Sinantra:<br \/>  <code>$ git clone https:\/\/github.com\/phusion\/passenger-ruby-sinatra-demo.git $ cd passenger-ruby-sinatra-demo<\/code><\/p>\n<p>  <strong>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0431\u043e\u0440\u0430 \u0433\u0435\u043c\u043e\u0432 (Updating your gem bundle)<\/strong><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<p>  <em>\u041e\u0442 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430: \u0442\u0443\u0442 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e <\/em><\/p>\n<p>  &quot;Open your app&#8217;s Gemfile and add &quot;passenger&quot;:&quot;<br \/>  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435.<\/p>\n<p>  <code>$ gem &quot;passenger&quot;, &quot;&gt;= 5.0.25&quot;, require: &quot;phusion_passenger\/rack_handler&quot;<\/code><\/p>\n<p>  <em>\u041c-\u043c-\u043c, \u0432 \u0441\u0430\u043c\u0438\u0445 Gemfile&#8217;s \u0443\u0436\u0435 \u0435\u0441\u0442\u044c &quot;# gem &#8216;passenger&#8217;&quot;<\/em>. \u0412\u043e\u0442 \u0438 \u0433\u0430\u0434\u0430\u0439. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0438 \u0442\u0430\u043a \u0438 \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u042d\u0442\u043e \u043a \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044e.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e<\/p>\n<p>  <code>$ cd \/path-to-your-app<\/code><br \/>  <code>$ bundle install<\/code><br \/>  <code>...<\/code><br \/>  <code>Installing passenger x.x.x<\/code><br \/>  \u2026<br \/>  <code>Your bundle is complete!<\/code><\/p>\n<p>  <strong>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong><\/p>\n<p>  \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<p>  <code>$ bundle exec passenger start<\/code><br \/>  <code>======= Phusion Passenger Standalone web server started =======<\/code><br \/>  <code>PID file: \/Users\/phusion\/myapp\/tmp\/pids\/passenger.3000.pid<\/code><br \/>  <code>Log file: \/Users\/phusion\/myapp\/log\/passenger.3000.log<\/code><br \/>  <code>Environment: development<\/code><br \/>  <code>Accessible via: http:\/\/0.0.0.0:3000\/<\/code><\/p>\n<p>  <code>You can stop Phusion Passenger Standalone by pressing Ctrl-C.<\/code><br \/>  <code>===============================================================<\/code><\/p>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 passenger \u043d\u0430 localhost \u0438 \u043f\u043e\u0440\u0442 3000, \u043b\u0443\u0447\u0448\u0435<\/p>\n<p>  <code>$ bundle exec passenger start -p 8081 -a 192.168.1.1<\/code><\/p>\n<p>  \u0418\u043b\u0438 \u043a\u0430\u043a \u0442\u0430\u043c \u0443 \u0412\u0430\u0441.<\/p>\n<p>  \u041a\u0430\u043a \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e,<\/p>\n<p>  <code>$ bundle exec rails server<\/code><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442 passsenger, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0442\u0430\u043d\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>  <strong>\u041b\u043e\u0433\u0438<\/strong><\/p>\n<p>  \u041b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u043e\u0433\u0430\u0442\u043e\u0435, \u043e\u0431\u044b\u0447\u043d\u043e log\/passenger.XXXX.log, \u0433\u0434\u0435 \u0425\u0425\u0425\u0425 \u2014 \u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0440\u0442\u0430, \u043f\u043e\u0434 Rails \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. \u0422\u0443\u0442 \u0442\u0435\u043c\u0430 \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f, \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043b\u043e\u0433\u0438 \u0441\u0430\u043c\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 web-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 (<em>\u044d\u0442\u043e \u043c\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 \u2014 \u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432.<\/em>)<\/p>\n<p>  <strong>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/strong><\/p>\n<p>  \u041d\u0435 \u0442\u0440\u0443\u0434\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f:<br \/>  Ctrl-C \u043d\u0443 \u0438\u043b\u0438<\/p>\n<p>  <code>$ bundle exec passenger stop<\/code><\/p>\n<p>  \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<p>  <strong>\u0412\u044b\u0432\u043e\u0434\u044b<\/strong><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e &quot;\u0432\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u0441 \u043f\u043e\u043b\u043a\u0438 \u043f\u0438\u0440\u043e\u0436\u043e\u043a&quot;.                 <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/278735\/\"> https:\/\/habrahabr.ru\/post\/278735\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h2>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435 8 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043e\u043d\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u043e\u0447\u043d\u044b\u0435 \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u0440\u0435\u0435 \u043d\u0435 \u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434, \u0430 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430:<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 Passenger \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d:<\/p>\n<ol>\n<li>\u041e\u0431\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e:<br \/>  1.1 \u041f\u0430\u043a\u0435\u0442\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430.<br \/>  1.2 \u0418\u0437 \u0442\u0430\u0440\u0431\u043e\u043b\u0430.<\/li>\n<li>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 RubyGems. <\/li>\n<\/ol>\n<p>  \u0421\u0430\u043c passenger \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0441 3-\u044f \u043a\u043b\u044e\u0447\u0430\u043c\u0438:<\/p>\n<p>  passenger start<br \/>  passenger stop<br \/>  passenger status<\/p>\n<p>  \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447 &#8212;help \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/p>\n<p>  <code>$ passanger start --help<\/code><\/p>\n<p>  \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e. \u0411\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443.<\/p>\n<p>  Passenger \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 apache,nginx, \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u0438\u0439 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 web-\u0441\u0435\u0440\u0432\u0435\u0440. \u0415\u0441\u043b\u0438 \u0432 Rails \u2014 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043e\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 Gemfile, \u0442\u043e &quot;rails server&quot; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u0435\u0433\u043e, \u0430 \u043d\u0435 WEBricks, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u0434\u043b\u044f \u0412\u0430\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0438\u0436\u0435. \u0421\u043c\u044b\u0441\u043b \u043f\u043e\u043b\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u0440\u0430\u0437\u0432\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u043a apache2 \u0438\u043b\u0438 nginx?<\/p>\n<h2>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 \/ <a href=\"https:\/\/www.phusionpassenger.com\/library\/walkthroughs\/start\/ruby.html\">Quickstart: Ruby + Phusion Passenger<\/a> <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-275634","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275634"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275634\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}