passenger 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/CHANGELOG +26 -0
- data/Rakefile +0 -1
- data/bin/passenger-install-apache2-module +46 -12
- data/bin/passenger-status +6 -3
- data/build/packaging.rb +9 -1
- data/dev/ci/run_travis.sh +0 -36
- data/doc/ServerOptimizationGuide.html +12 -11
- data/doc/ServerOptimizationGuide.txt.md +12 -11
- data/doc/Users guide Apache.html +81 -75
- data/doc/Users guide Apache.idmap.txt +15 -13
- data/doc/Users guide Apache.txt +9 -1
- data/doc/Users guide Nginx.html +81 -76
- data/doc/Users guide Nginx.idmap.txt +15 -13
- data/doc/Users guide Nginx.txt +8 -0
- data/doc/Users guide Standalone.html +183 -24
- data/doc/Users guide Standalone.idmap.txt +19 -11
- data/doc/Users guide Standalone.txt +4 -0
- data/doc/users_guide_snippets/environment_variables.txt +2 -1
- data/doc/users_guide_snippets/installation.txt +15 -2
- data/doc/users_guide_snippets/tips.txt +19 -31
- data/doc/users_guide_snippets/under_the_hood/relationship_with_ruby.txt +7 -0
- data/ext/apache2/ConfigurationCommands.cpp +7 -0
- data/ext/apache2/ConfigurationFields.hpp +2 -0
- data/ext/apache2/ConfigurationSetters.cpp +8 -0
- data/ext/apache2/CreateDirConfig.cpp +1 -0
- data/ext/apache2/MergeDirConfig.cpp +7 -0
- data/ext/apache2/SetHeaders.cpp +5 -0
- data/ext/common/ApplicationPool2/Options.h +9 -0
- data/ext/common/Constants.h +3 -1
- data/ext/common/Logging.cpp +2 -2
- data/ext/common/ServerKit/HttpHeaderParser.h +13 -1
- data/ext/common/ServerKit/Implementation.cpp +7 -1
- data/ext/common/agents/Base.cpp +1 -1
- data/ext/common/agents/HelperAgent/OptionParser.h +15 -0
- data/ext/common/agents/HelperAgent/RequestHandler.h +3 -1
- data/ext/common/agents/HelperAgent/RequestHandler/BufferBody.cpp +3 -3
- data/ext/common/agents/HelperAgent/RequestHandler/InitRequest.cpp +12 -1
- data/ext/common/agents/HelperAgent/RequestHandler/Utils.cpp +7 -3
- data/ext/common/agents/HelperAgent/ResponseCache.h +7 -1
- data/ext/common/agents/LoggingAgent/Main.cpp +4 -1
- data/ext/nginx/CacheLocationConfig.c +20 -0
- data/ext/nginx/Configuration.c +7 -0
- data/ext/nginx/ConfigurationCommands.c +10 -0
- data/ext/nginx/ConfigurationFields.h +2 -0
- data/ext/nginx/ContentHandler.c +10 -0
- data/ext/nginx/CreateLocationConfig.c +5 -0
- data/ext/nginx/MergeLocationConfig.c +6 -0
- data/helper-scripts/meteor-loader.rb +15 -2
- data/helper-scripts/rack-loader.rb +2 -6
- data/helper-scripts/rack-preloader.rb +1 -5
- data/lib/phusion_passenger.rb +3 -3
- data/lib/phusion_passenger/apache2/config_options.rb +5 -0
- data/lib/phusion_passenger/config/command.rb +9 -0
- data/lib/phusion_passenger/config/install_standalone_runtime_command.rb +4 -0
- data/lib/phusion_passenger/config/validate_install_command.rb +478 -46
- data/lib/phusion_passenger/constants.rb +1 -0
- data/lib/phusion_passenger/loader_shared_helpers.rb +26 -3
- data/lib/phusion_passenger/nginx/config_options.rb +4 -0
- data/lib/phusion_passenger/packaging.rb +0 -8
- data/lib/phusion_passenger/platform_info/apache.rb +40 -28
- data/lib/phusion_passenger/platform_info/apache_detector.rb +29 -3
- data/lib/phusion_passenger/rack/thread_handler_extension.rb +12 -7
- data/lib/phusion_passenger/request_handler/thread_handler.rb +5 -0
- data/lib/phusion_passenger/standalone/start_command.rb +46 -5
- data/lib/phusion_passenger/standalone/start_command/builtin_engine.rb +5 -3
- data/resources/templates/apache2/config_snippets.txt.erb +1 -1
- data/resources/templates/apache2/run_installer_as_root_for_apache_analysis.txt.erb +9 -0
- data/resources/templates/standalone/config.erb +16 -1
- metadata +3 -3
- metadata.gz.asc +7 -7
- data/build/debian.rb +0 -213
data/doc/Users guide Apache.html
CHANGED
@@ -1166,18 +1166,19 @@ using the command line.</p></div>
|
|
1166
1166
|
<div class="foo toclevel4"><a href="#PassengerRuby">7.4.1. PassengerRuby <filename></a></div>
|
1167
1167
|
<div class="foo toclevel4"><a href="#_passengerpython_lt_filename_gt">7.4.2. PassengerPython <filename></a></div>
|
1168
1168
|
<div class="foo toclevel4"><a href="#_passengernodejs_lt_filename_gt">7.4.3. PassengerNodejs <filename></a></div>
|
1169
|
-
<div class="foo toclevel4"><a href="#
|
1170
|
-
<div class="foo toclevel4"><a href="#
|
1171
|
-
<div class="foo toclevel4"><a href="#
|
1172
|
-
<div class="foo toclevel4"><a href="#
|
1173
|
-
<div class="foo toclevel4"><a href="#
|
1174
|
-
<div class="foo toclevel4"><a href="#
|
1175
|
-
<div class="foo toclevel4"><a href="#
|
1176
|
-
<div class="foo toclevel4"><a href="#
|
1177
|
-
<div class="foo toclevel4"><a href="#
|
1178
|
-
<div class="foo toclevel4"><a href="#
|
1179
|
-
<div class="foo toclevel4"><a href="#
|
1180
|
-
<div class="foo toclevel4"><a href="#
|
1169
|
+
<div class="foo toclevel4"><a href="#_passengermeteorappsettings_lt_filename_gt">7.4.4. PassengerMeteorAppSettings <filename></a></div>
|
1170
|
+
<div class="foo toclevel4"><a href="#PassengerAppEnv">7.4.5. PassengerAppEnv <string></a></div>
|
1171
|
+
<div class="foo toclevel4"><a href="#rails_env">7.4.6. RailsEnv <string></a></div>
|
1172
|
+
<div class="foo toclevel4"><a href="#rack_env">7.4.7. RackEnv <string></a></div>
|
1173
|
+
<div class="foo toclevel4"><a href="#PassengerAppRoot">7.4.8. PassengerAppRoot <path/to/root></a></div>
|
1174
|
+
<div class="foo toclevel4"><a href="#PassengerAppGroupName">7.4.9. PassengerAppGroupName <name></a></div>
|
1175
|
+
<div class="foo toclevel4"><a href="#PassengerAppType">7.4.10. PassengerAppType <name></a></div>
|
1176
|
+
<div class="foo toclevel4"><a href="#PassengerStartupFile">7.4.11. PassengerStartupFile <filename></a></div>
|
1177
|
+
<div class="foo toclevel4"><a href="#_passengerrestartdir_lt_directory_gt">7.4.12. PassengerRestartDir <directory></a></div>
|
1178
|
+
<div class="foo toclevel4"><a href="#PassengerSpawnMethod">7.4.13. PassengerSpawnMethod <string></a></div>
|
1179
|
+
<div class="foo toclevel4"><a href="#PassengerLoadShellEnvvars">7.4.14. PassengerLoadShellEnvvars <on|off></a></div>
|
1180
|
+
<div class="foo toclevel4"><a href="#PassengerRollingRestarts">7.4.15. PassengerRollingRestarts <on|off></a></div>
|
1181
|
+
<div class="foo toclevel4"><a href="#PassengerResistDeploymentErrors">7.4.16. PassengerResistDeploymentErrors <on|off></a></div>
|
1181
1182
|
<div class="foo toclevel3"><a href="#_security_options">7.5. Security options</a></div>
|
1182
1183
|
<div class="foo toclevel4"><a href="#PassengerUserSwitching">7.5.1. PassengerUserSwitching <on|off></a></div>
|
1183
1184
|
<div class="foo toclevel4"><a href="#PassengerUser">7.5.2. PassengerUser <username></a></div>
|
@@ -1261,7 +1262,7 @@ using the command line.</p></div>
|
|
1261
1262
|
<div class="foo toclevel4"><a href="#_caveats_amp_troubleshooting">10.1.3. Caveats & troubleshooting</a></div>
|
1262
1263
|
<div class="foo toclevel4"><a href="#finding_out_app_user">10.1.4. Finding out what user an application is running as</a></div>
|
1263
1264
|
<div class="foo toclevel3"><a href="#reducing_memory_usage">10.2. Copy-on-write memory support (reducing memory consumption of Ruby applications)</a></div>
|
1264
|
-
<div class="foo toclevel3"><a href="#
|
1265
|
+
<div class="foo toclevel3"><a href="#tuning_sse_websockets">10.3. Tuning for Server Sent Events and WebSockets</a></div>
|
1265
1266
|
<div class="foo toclevel3"><a href="#bundler_support">10.4. Bundler support</a></div>
|
1266
1267
|
<div class="foo toclevel4"><a href="#add_passenger_to_gemfile">10.4.1. Does Phusion Passenger itself need to be added to the Gemfile?</a></div>
|
1267
1268
|
<div class="foo toclevel3"><a href="#_installing_multiple_ruby_on_rails_versions">10.5. Installing multiple Ruby on Rails versions</a></div>
|
@@ -1634,6 +1635,25 @@ sudo apt-get update</pre>
|
|
1634
1635
|
</div>
|
1635
1636
|
</div>
|
1636
1637
|
</li>
|
1638
|
+
<li>
|
1639
|
+
<p>
|
1640
|
+
(Optional) If using <span class="monospaced">unattended-upgrades</span>, add our APT repository to the list of <span class="monospaced">Allowed-Origins</span> for upgrades, <span class="monospaced">/etc/apt/apt.conf.d/50unattended-upgrades</span>:
|
1641
|
+
</p>
|
1642
|
+
<div class="listingblock">
|
1643
|
+
<div class="content">
|
1644
|
+
<!-- Generator: GNU source-highlight 2.11.1
|
1645
|
+
by Lorenzo Bettini
|
1646
|
+
http://www.lorenzobettini.it
|
1647
|
+
http://www.gnu.org/software/src-highlite -->
|
1648
|
+
<pre><tt><span style="color: #990000">//</span> Automatically upgrade packages from these <span style="color: #990000">(</span>origin<span style="color: #990000">:</span>archive<span style="color: #990000">)</span> pairs
|
1649
|
+
Unattended-Upgrade<span style="color: #990000">::</span>Allowed-Origins {
|
1650
|
+
<span style="color: #990000">//</span> To check <span style="color: #FF0000">"Origin:"</span> and <span style="color: #FF0000">"Suite:"</span><span style="color: #990000">,</span> you could use e<span style="color: #990000">.</span>g<span style="color: #990000">.:</span>
|
1651
|
+
<span style="color: #990000">//</span> grep <span style="color: #FF0000">"Origin</span><span style="color: #CC33CC">\|</span><span style="color: #FF0000">Suite"</span> /var/lib/apt/lists/oss-binaries<span style="color: #990000">.</span>phusionpassenger<span style="color: #990000">.</span>com<span style="color: #990000">*</span>
|
1652
|
+
<span style="color: #FF0000">"Phusion:stable"</span><span style="color: #990000">;</span>
|
1653
|
+
}<span style="color: #990000">;</span></tt></pre>
|
1654
|
+
</div>
|
1655
|
+
</div>
|
1656
|
+
</li>
|
1637
1657
|
</ol></div>
|
1638
1658
|
</div>
|
1639
1659
|
<div class="sect3">
|
@@ -1711,6 +1731,7 @@ sudo apache2ctl stop; sudo apache2ctl start</pre>
|
|
1711
1731
|
</ol></div>
|
1712
1732
|
</dd>
|
1713
1733
|
</dl></div>
|
1734
|
+
<div class="paragraph"><p>You can now proceed with a chapter for Deploying your (specific type of) application.</p></div>
|
1714
1735
|
</div>
|
1715
1736
|
</div>
|
1716
1737
|
<div class="sect2">
|
@@ -3457,7 +3478,13 @@ Do you want to know which command to use for a different Ruby interpreter? 'rvm
|
|
3457
3478
|
<div class="paragraph"><p>This option allows one to specify the Node.js command to use. See <a href="#PassengerRuby">PassengerRuby</a> for more information. The default value is <em>node</em>, meaning that the Node.js command will be looked up according to the <span class="monospaced">PATH</span> environment variable.</p></div>
|
3458
3479
|
</div>
|
3459
3480
|
<div class="sect3">
|
3460
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="
|
3481
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="_passengermeteorappsettings_lt_filename_gt"></span><h4 data-comment-topic="passengermeteorappsettings-filename--inl1bd" data-anchor="_passengermeteorappsettings_lt_filename_gt">7.4.4. PassengerMeteorAppSettings <filename></h4>
|
3482
|
+
<div class="paragraph"><p><strong>Introduced in version 5.0.7.</strong></p></div>
|
3483
|
+
<div class="paragraph"><p>When using a Meteor application in non-bundled mode, use this option to specify a (JSON) file with settings for the application. Meteor will be started with the <span class="monospaced">--settings</span> parameter set to this option.</p></div>
|
3484
|
+
<div class="paragraph"><p>N.B. For bundled mode, Meteor requires you to put applications settings in the <span class="monospaced">METEOR_SETTINGS</span> environment variable.</p></div>
|
3485
|
+
</div>
|
3486
|
+
<div class="sect3">
|
3487
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppEnv"></span><h4 data-comment-topic="passengerappenv-string--s3ojlc" data-anchor="PassengerAppEnv">7.4.5. PassengerAppEnv <string></h4>
|
3461
3488
|
<div class="paragraph"><p>This option sets the value of the following environment variables:</p></div>
|
3462
3489
|
<div class="ulist"><ul>
|
3463
3490
|
<li>
|
@@ -3516,15 +3543,15 @@ In <em>.htaccess</em>, if <span class="monospaced">AllowOverride Options</span>
|
|
3516
3543
|
<div class="paragraph"><p>In each place, it may be specified at most once.</p></div>
|
3517
3544
|
</div>
|
3518
3545
|
<div class="sect3">
|
3519
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="rails_env"></span><h4 data-comment-topic="railsenv-string--1b0xxvu" data-anchor="rails_env">7.4.
|
3546
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="rails_env"></span><h4 data-comment-topic="railsenv-string--1b0xxvu" data-anchor="rails_env">7.4.6. RailsEnv <string></h4>
|
3520
3547
|
<div class="paragraph"><p>An alias for <a href="#PassengerAppEnv">PassengerAppEnv</a>.</p></div>
|
3521
3548
|
</div>
|
3522
3549
|
<div class="sect3">
|
3523
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="rack_env"></span><h4 data-comment-topic="rackenv-string--vve9py" data-anchor="rack_env">7.4.
|
3550
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="rack_env"></span><h4 data-comment-topic="rackenv-string--vve9py" data-anchor="rack_env">7.4.7. RackEnv <string></h4>
|
3524
3551
|
<div class="paragraph"><p>An alias for <a href="#PassengerAppEnv">PassengerAppEnv</a>.</p></div>
|
3525
3552
|
</div>
|
3526
3553
|
<div class="sect3">
|
3527
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppRoot"></span><h4 data-comment-topic="passengerapproot-path-to-root--uf24yd" data-anchor="PassengerAppRoot">7.4.
|
3554
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppRoot"></span><h4 data-comment-topic="passengerapproot-path-to-root--uf24yd" data-anchor="PassengerAppRoot">7.4.8. PassengerAppRoot <path/to/root></h4>
|
3528
3555
|
<div class="paragraph"><p>By default, Phusion Passenger assumes that the application’s root directory
|
3529
3556
|
is the parent directory of the <em>public</em> directory. This option allows one to
|
3530
3557
|
specify the application’s root independently from the DocumentRoot, which
|
@@ -3567,8 +3594,8 @@ In <em>.htaccess</em>, if <span class="monospaced">AllowOverride Options</span>
|
|
3567
3594
|
</div>
|
3568
3595
|
</div>
|
3569
3596
|
<div class="sect3">
|
3570
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppGroupName"></span><h4 data-comment-topic="passenger-app-group-name-name--6unn5c" data-anchor="PassengerAppGroupName">7.4.
|
3571
|
-
<div class="paragraph"><p>Sets the name of the application group that the current application should belong to. Its default value is the <a href="#
|
3597
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppGroupName"></span><h4 data-comment-topic="passenger-app-group-name-name--6unn5c" data-anchor="PassengerAppGroupName">7.4.9. PassengerAppGroupName <name></h4>
|
3598
|
+
<div class="paragraph"><p>Sets the name of the application group that the current application should belong to. Its default value is the <a href="#application_root">application root</a>, plus (if it is set), the <a href="#PassengerAppEnv">application environment name</a>.</p></div>
|
3572
3599
|
<div class="paragraph"><p>Phusion Passenger stores and caches most application spawning settings — such as environment variables, process limits, etc — on a per-app-group-name basis. This means that if you want to start two versions of your application, with each version having different environment variables, then you must assign them under different application group names.</p></div>
|
3573
3600
|
<div class="paragraph"><p>For example, consider a situation in which you are running multiple versions of the same app, with each version intended for a different customer. You use the <span class="monospaced">CUSTOMER_NAME</span> environment variable to tell the app which customer that version should serve.</p></div>
|
3574
3601
|
<div class="listingblock">
|
@@ -3652,7 +3679,7 @@ In <em>.htaccess</em>, if <span class="monospaced">AllowOverride Options</span>
|
|
3652
3679
|
<div class="paragraph"><p>In each place, it may be specified at most once.</p></div>
|
3653
3680
|
</div>
|
3654
3681
|
<div class="sect3">
|
3655
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppType"></span><h4 data-comment-topic="passengerapptype-name--62jzqf" data-anchor="PassengerAppType">7.4.
|
3682
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppType"></span><h4 data-comment-topic="passengerapptype-name--62jzqf" data-anchor="PassengerAppType">7.4.10. PassengerAppType <name></h4>
|
3656
3683
|
<div class="paragraph"><p><strong>Introduced in version 4.0.25.</strong></p></div>
|
3657
3684
|
<div class="paragraph"><p>By default, Phusion Passenger autodetects the type of the application, e.g. whether it’s a Ruby, Python, Node.js or Meteor app. If it’s unable to autodetect the type of the application (e.g. because you’ve specified a custom <a href="#PassengerStartupFile">PassengerStartupFile</a>) then you can use this option to force Phusion Passenger to recognize the application as a specific type.</p></div>
|
3658
3685
|
<div class="paragraph"><p>Allowed values are:</p></div>
|
@@ -3718,7 +3745,7 @@ In <em>.htaccess</em>.
|
|
3718
3745
|
</div>
|
3719
3746
|
</div>
|
3720
3747
|
<div class="sect3">
|
3721
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerStartupFile"></span><h4 data-comment-topic="passengerstartupfile-filename--14vhvn9" data-anchor="PassengerStartupFile">7.4.
|
3748
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerStartupFile"></span><h4 data-comment-topic="passengerstartupfile-filename--14vhvn9" data-anchor="PassengerStartupFile">7.4.11. PassengerStartupFile <filename></h4>
|
3722
3749
|
<div class="paragraph"><p><strong>Introduced in version 4.0.25.</strong></p></div>
|
3723
3750
|
<div class="paragraph"><p>This option specifies the startup file that Phusion Passenger should use when loading the application.</p></div>
|
3724
3751
|
<div class="paragraph"><p>Every application has a <strong>startup file</strong> or <strong>entry point file</strong>: a file where the application begins execution. Some languages have widely accepted conventions about how such a file should be called (e.g. Ruby, with its <span class="monospaced">config.ru</span>). Other languages have somewhat-accepted conventions (e.g. Node.js, with its <span class="monospaced">app.js</span>). In these cases, Phusion Passenger reuses these conventions, and executes applications through those files.</p></div>
|
@@ -3807,7 +3834,7 @@ In <em>.htaccess</em>.
|
|
3807
3834
|
</div>
|
3808
3835
|
</div>
|
3809
3836
|
<div class="sect3">
|
3810
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="_passengerrestartdir_lt_directory_gt"></span><h4 data-comment-topic="passengerrestartdir-directory--1fmhmv0" data-anchor="_passengerrestartdir_lt_directory_gt">7.4.
|
3837
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="_passengerrestartdir_lt_directory_gt"></span><h4 data-comment-topic="passengerrestartdir-directory--1fmhmv0" data-anchor="_passengerrestartdir_lt_directory_gt">7.4.12. PassengerRestartDir <directory></h4>
|
3811
3838
|
<div class="paragraph"><p>As described in the deployment chapters of this document, Phusion Passenger
|
3812
3839
|
checks the file <em>tmp/restart.txt</em> in the applications'
|
3813
3840
|
<a href="#application_root">root directory</a> for restarting applications. Sometimes it
|
@@ -3881,7 +3908,7 @@ allow the attacker to cause a Denial-of-Service.</p>
|
|
3881
3908
|
directory that’s readable by Apache, but only writable by administrators.</p></div>
|
3882
3909
|
</div>
|
3883
3910
|
<div class="sect3">
|
3884
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerSpawnMethod"></span><h4 data-comment-topic="passengerspawnmethod-string--sodg2y" data-anchor="PassengerSpawnMethod">7.4.
|
3911
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerSpawnMethod"></span><h4 data-comment-topic="passengerspawnmethod-string--sodg2y" data-anchor="PassengerSpawnMethod">7.4.13. PassengerSpawnMethod <string></h4>
|
3885
3912
|
<div class="admonitionblock">
|
3886
3913
|
<table><tr>
|
3887
3914
|
<td class="icon">
|
@@ -3964,7 +3991,7 @@ In a virtual host configuration block.
|
|
3964
3991
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>smart</em>.</p></div>
|
3965
3992
|
</div>
|
3966
3993
|
<div class="sect3">
|
3967
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerLoadShellEnvvars"></span><h4 data-comment-topic="passengerloadshellenvvars-on-off--1290yz1" data-anchor="PassengerLoadShellEnvvars">7.4.
|
3994
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerLoadShellEnvvars"></span><h4 data-comment-topic="passengerloadshellenvvars-on-off--1290yz1" data-anchor="PassengerLoadShellEnvvars">7.4.14. PassengerLoadShellEnvvars <on|off></h4>
|
3968
3995
|
<div class="paragraph"><p><strong>Introduced in version 4.0.20.</strong></p></div>
|
3969
3996
|
<div class="paragraph"><p>Enables or disables the loading of shell environment variables before spawning the application.</p></div>
|
3970
3997
|
<div class="paragraph"><p>If this option is turned on, and the user’s shell is <span class="monospaced">bash</span>, then applications are loaded by running them with <span class="monospaced">bash -l -c</span>. Otherwise, they are loaded by running them directly from the <span class="monospaced">PassengerHelperAgent</span> process.</p></div>
|
@@ -3994,7 +4021,7 @@ In <em>.htaccess</em>, if <span class="monospaced">AllowOverride Options</span>
|
|
3994
4021
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>on</em>.</p></div>
|
3995
4022
|
</div>
|
3996
4023
|
<div class="sect3">
|
3997
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerRollingRestarts"></span><h4 data-comment-topic="passengerrollingrestarts" data-anchor="PassengerRollingRestarts">7.4.
|
4024
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerRollingRestarts"></span><h4 data-comment-topic="passengerrollingrestarts" data-anchor="PassengerRollingRestarts">7.4.15. PassengerRollingRestarts <on|off></h4>
|
3998
4025
|
<div class="paragraph"><p><strong>This feature is only available in <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a>. It was introduced in version 3.0.0. <a href="https://www.phusionpassenger.com/download">Buy Phusion Passenger Enterprise here.</a></strong></p></div>
|
3999
4026
|
<div class="paragraph"><p>Enables or disables support for rolling restarts through restart.txt. Normally when you
|
4000
4027
|
restart an application by touching restart.txt, Phusion Passenger would
|
@@ -4081,7 +4108,7 @@ In <em>.htaccess</em>, if <span class="monospaced">AllowOverride Options</span>
|
|
4081
4108
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>off</em>.</p></div>
|
4082
4109
|
</div>
|
4083
4110
|
<div class="sect3">
|
4084
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerResistDeploymentErrors"></span><h4 data-comment-topic="passengerresistdeploymenterrors" data-anchor="PassengerResistDeploymentErrors">7.4.
|
4111
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerResistDeploymentErrors"></span><h4 data-comment-topic="passengerresistdeploymenterrors" data-anchor="PassengerResistDeploymentErrors">7.4.16. PassengerResistDeploymentErrors <on|off></h4>
|
4085
4112
|
<div class="paragraph"><p><strong>This feature is only available in <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a>. It was introduced in version 3.0.0. <a href="https://www.phusionpassenger.com/download">Buy Phusion Passenger Enterprise here.</a></strong></p></div>
|
4086
4113
|
<div class="paragraph"><p>Enables or disables resistance against deployment errors.</p></div>
|
4087
4114
|
<div class="paragraph"><p>Suppose you’ve upgraded your application and you’ve issues a command to restart it (by touching restart.txt), but the application code contains an error that prevents Phusion Passenger from successfully spawning a process (e.g. a syntax error). Phusion Passenger would normally display an error message in response to this.</p></div>
|
@@ -6599,39 +6626,29 @@ MRI Ruby >= 2.0. Versions prior to 2.0 did not have a copy-on-write friendly
|
|
6599
6626
|
</ul></div>
|
6600
6627
|
</div>
|
6601
6628
|
<div class="sect2">
|
6602
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="
|
6603
|
-
<div class="paragraph"><p>Phusion Passenger
|
6604
|
-
|
6605
|
-
|
6606
|
-
<div class="listingblock">
|
6607
|
-
<div class="content monospaced">
|
6608
|
-
<pre>
|
6609
|
-
|
6610
|
-
|
6611
|
-
set :use_sudo, false
|
6612
|
-
set :deploy_to, "/path-to-your-web-app-directory/#{application}"
|
6613
|
-
set :scm, "git"
|
6614
|
-
|
6615
|
-
role :app, domain
|
6616
|
-
role :web, domain
|
6617
|
-
role :db, domain, :primary => true
|
6618
|
-
|
6619
|
-
namespace :deploy do
|
6620
|
-
task :start, :roles => :app do
|
6621
|
-
run "touch #{current_release}/tmp/restart.txt"
|
6622
|
-
end
|
6623
|
-
|
6624
|
-
task :stop, :roles => :app do
|
6625
|
-
# Do nothing.
|
6626
|
-
end
|
6627
|
-
|
6628
|
-
desc "Restart Application"
|
6629
|
-
task :restart, :roles => :app do
|
6630
|
-
run "touch #{current_release}/tmp/restart.txt"
|
6631
|
-
end
|
6632
|
-
end</pre>
|
6629
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="tuning_sse_websockets"></span><h3 data-comment-topic="tuning-for-server-sent-events-and-websockets-1hy6qa9" data-anchor="tuning_sse_websockets">10.3. Tuning for Server Sent Events and WebSockets</h3>
|
6630
|
+
<div class="paragraph"><p>Phusion Passenger supports Server Sent Events (SSE) and WebSockets out of the box with no configuration, but there are some things you need to know.</p></div>
|
6631
|
+
<div class="paragraph"><p>First, WebSockets are <a href="https://github.com/phusion/passenger/issues/1202">not yet supported when using the Apache integration mode</a>.</p></div>
|
6632
|
+
<div class="paragraph"><p>Second, for Ruby apps only, you need to insert a configuration snippet inside your <span class="monospaced">config.ru</span>:</p></div>
|
6633
|
+
<div class="listingblock">
|
6634
|
+
<div class="content monospaced">
|
6635
|
+
<pre><strong>if</strong> defined?(PhusionPassenger)
|
6636
|
+
PhusionPassenger.advertised_concurrency_level = 0
|
6637
|
+
<strong>end</strong></pre>
|
6633
6638
|
</div>
|
6634
6639
|
</div>
|
6640
|
+
<div class="admonitionblock">
|
6641
|
+
<table><tr>
|
6642
|
+
<td class="icon">
|
6643
|
+
<img src="./images/icons/note.png" alt="Note">
|
6644
|
+
</td>
|
6645
|
+
<td class="content">
|
6646
|
+
<div class="paragraph"><p>This snippet tells Passenger that your Ruby app will handle SSE and WebSockets. In response, Passenger will adjust the connection concurrency settings for your app. Without this configuration snippet, SSE and WebSockets still work, but with degraded performance.</p></div>
|
6647
|
+
<div class="paragraph"><p>This configuration snippet is currently necessary because of the way Passenger is implemented. We are <a href="https://github.com/phusion/passenger/issues/1195">working on improving this mechanism</a>. One day, the above configuration snippet will no longer be necessary. For now, you should include the above configuration snippet for optimal SSE and WebSocket performance.</p></div>
|
6648
|
+
</td>
|
6649
|
+
</tr></table>
|
6650
|
+
</div>
|
6651
|
+
<div class="paragraph"><p>Finally, you can find Passenger SSE and WebSocket demo apps on <a href="https://www.phusionpassenger.com/documentation_and_support">the Passenger documentation overview page</a>, under section "Demos".</p></div>
|
6635
6652
|
</div>
|
6636
6653
|
<div class="sect2">
|
6637
6654
|
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="bundler_support"></span><h3 data-comment-topic="bundler-support-cf72ih" data-anchor="bundler_support">10.4. Bundler support</h3>
|
@@ -7478,25 +7495,13 @@ Phusion Passenger’s installer, build system and administration tools are writt
|
|
7478
7495
|
<p>
|
7479
7496
|
Certain internally used tools, such as the crash handler (which generates a backtrace in case Phusion Passenger crash) and the prespawn script (used to implement
|
7480
7497
|
<a href="#PassengerPreStart">PassengerPreStart</a>)
|
7481
|
-
are written in Ruby as well.
|
7482
|
-
</p>
|
7483
|
-
</li>
|
7484
|
-
<li>
|
7485
|
-
<p>
|
7486
|
-
Ruby web application support is implemented in Ruby.
|
7487
|
-
</p>
|
7488
|
-
</li>
|
7489
|
-
<li>
|
7490
|
-
<p>
|
7491
|
-
If you use <a href="#flying_passenger">Flying Passenger</a>, then the Flying Passenger daemon is written in Ruby. The daemon is a small (less than 500 lines of code) and offloads most tasks to the C++ core.
|
7492
|
-
</p>
|
7493
|
-
</li>
|
7494
|
-
<li>
|
7495
|
-
<p>
|
7496
|
-
If you use <a href="Users%20guide%20Standalone.html">Phusion Passenger Standalone</a>, then the frontend (the <span class="monospaced">passenger</span> command) is written in Ruby. The frontend is small (less than 1500 lines of code) and offloads most tasks to the C++ core.
|
7497
7498
|
</p>
|
7498
7499
|
</li>
|
7499
7500
|
</ul></div>
|
7501
|
+
<div class="paragraph"><p>are written in Ruby as well.
|
7502
|
+
* Ruby web application support is implemented in Ruby.
|
7503
|
+
* If you use <a href="#flying_passenger">Flying Passenger</a>, then the Flying Passenger daemon is written in Ruby. The daemon is a small (less than 500 lines of code) and offloads most tasks to the C<span class="monospaced"> core.
|
7504
|
+
* If you use <a href="Users%20guide%20Standalone.html">Phusion Passenger Standalone</a>, then the frontend (the <span class="monospaced">passenger</span> command) is written in Ruby. The frontend is small (less than 1500 lines of code) and offloads most tasks to the C</span> core.</p></div>
|
7500
7505
|
<div class="paragraph"><p>Other than the aforementioned aspects, Phusion Passenger does not use Ruby during normal operation. For example, if you run Python WSGI web applications on Phusion Passenger, then there will be (almost) no Ruby code running on the system.</p></div>
|
7501
7506
|
</div>
|
7502
7507
|
<div class="sect3">
|
@@ -8275,7 +8280,8 @@ echo <span style="color: #FF0000">'export PATH=/usr/local/bin:$PATH'</span> <spa
|
|
8275
8280
|
<td class="icon">
|
8276
8281
|
<img src="./images/icons/note.png" alt="Note">
|
8277
8282
|
</td>
|
8278
|
-
<td class="content">Depending on the system, the bashrc file may have a different filename. On Debian and Ubuntu, it’s <span class="monospaced">/etc/bash.bashrc</span
|
8283
|
+
<td class="content">Depending on the system, the bashrc file may have a different filename. On Debian and Ubuntu, it’s <span class="monospaced">/etc/bash.bashrc</span>.
|
8284
|
+
NOTE: Make sure your <span class="monospaced">~/.bashrc</span> is actually included by your <span class="monospaced">~/.profile</span>, which might not be the case if you created the user with <span class="monospaced">useradd</span> instead of <span class="monospaced">adduser</span> for example</td>
|
8279
8285
|
</tr></table>
|
8280
8286
|
</div>
|
8281
8287
|
</div>
|
@@ -8351,7 +8357,7 @@ When running Apache, use the <span class="monospaced">PassEnv</span> and <span c
|
|
8351
8357
|
</li>
|
8352
8358
|
<li>
|
8353
8359
|
<p>
|
8354
|
-
When running Nginx, use the <a href="#
|
8360
|
+
When running Nginx, use the <a href="#PassengerEnvVar">passenger_env_var</a> directive.
|
8355
8361
|
</p>
|
8356
8362
|
</li>
|
8357
8363
|
<li>
|
@@ -136,29 +136,31 @@
|
|
136
136
|
|
137
137
|
7.4.3. PassengerNodejs <filename> => passengernodejs-filename--2mjb1j
|
138
138
|
|
139
|
-
7.4.4.
|
139
|
+
7.4.4. PassengerMeteorAppSettings <filename> => passengermeteorappsettings-filename--inl1bd
|
140
140
|
|
141
|
-
7.4.5.
|
141
|
+
7.4.5. PassengerAppEnv <string> => passengerappenv-string--s3ojlc
|
142
142
|
|
143
|
-
7.4.6.
|
143
|
+
7.4.6. RailsEnv <string> => railsenv-string--1b0xxvu
|
144
144
|
|
145
|
-
7.4.7.
|
145
|
+
7.4.7. RackEnv <string> => rackenv-string--vve9py
|
146
146
|
|
147
|
-
7.4.8.
|
147
|
+
7.4.8. PassengerAppRoot <path/to/root> => passengerapproot-path-to-root--uf24yd
|
148
148
|
|
149
|
-
7.4.9.
|
149
|
+
7.4.9. PassengerAppGroupName <name> => passenger-app-group-name-name--6unn5c
|
150
150
|
|
151
|
-
7.4.10.
|
151
|
+
7.4.10. PassengerAppType <name> => passengerapptype-name--62jzqf
|
152
152
|
|
153
|
-
7.4.11.
|
153
|
+
7.4.11. PassengerStartupFile <filename> => passengerstartupfile-filename--14vhvn9
|
154
154
|
|
155
|
-
7.4.12.
|
155
|
+
7.4.12. PassengerRestartDir <directory> => passengerrestartdir-directory--1fmhmv0
|
156
156
|
|
157
|
-
7.4.13.
|
157
|
+
7.4.13. PassengerSpawnMethod <string> => passengerspawnmethod-string--sodg2y
|
158
158
|
|
159
|
-
7.4.14.
|
159
|
+
7.4.14. PassengerLoadShellEnvvars <on|off> => passengerloadshellenvvars-on-off--1290yz1
|
160
160
|
|
161
|
-
7.4.15.
|
161
|
+
7.4.15. PassengerRollingRestarts <on|off> => passengerrollingrestarts
|
162
|
+
|
163
|
+
7.4.16. PassengerResistDeploymentErrors <on|off> => passengerresistdeploymenterrors
|
162
164
|
|
163
165
|
7.5. Security options => security-options-1pb75ho
|
164
166
|
|
@@ -326,7 +328,7 @@
|
|
326
328
|
|
327
329
|
10.2. Copy-on-write memory support (reducing memory consumption of Ruby applications) => reducing-memory-consumption-of-ruby-on-rails-applications-by-33--1ubxnq0
|
328
330
|
|
329
|
-
10.3.
|
331
|
+
10.3. Tuning for Server Sent Events and WebSockets => tuning-for-server-sent-events-and-websockets-1hy6qa9
|
330
332
|
|
331
333
|
10.4. Bundler support => bundler-support-cf72ih
|
332
334
|
|
data/doc/Users guide Apache.txt
CHANGED
@@ -583,6 +583,14 @@ include::users_guide_snippets/since_version.txt[]
|
|
583
583
|
|
584
584
|
This option allows one to specify the Node.js command to use. See <<PassengerRuby,PassengerRuby>> for more information. The default value is 'node', meaning that the Node.js command will be looked up according to the `PATH` environment variable.
|
585
585
|
|
586
|
+
==== PassengerMeteorAppSettings <filename>
|
587
|
+
:version: 5.0.7
|
588
|
+
include::users_guide_snippets/since_version.txt[]
|
589
|
+
|
590
|
+
When using a Meteor application in non-bundled mode, use this option to specify a (JSON) file with settings for the application. Meteor will be started with the `--settings` parameter set to this option.
|
591
|
+
|
592
|
+
N.B. For bundled mode, Meteor requires you to put applications settings in the `METEOR_SETTINGS` environment variable.
|
593
|
+
|
586
594
|
[[PassengerAppEnv]]
|
587
595
|
==== PassengerAppEnv <string> ====
|
588
596
|
This option sets the value of the following environment variables:
|
@@ -648,7 +656,7 @@ Example:
|
|
648
656
|
|
649
657
|
[[PassengerAppGroupName]]
|
650
658
|
==== PassengerAppGroupName <name>
|
651
|
-
Sets the name of the application group that the current application should belong to. Its default value is the <<
|
659
|
+
Sets the name of the application group that the current application should belong to. Its default value is the <<application_root,application root>>, plus (if it is set), the <<PassengerAppEnv,application environment name>>.
|
652
660
|
|
653
661
|
Phusion Passenger stores and caches most application spawning settings -- such as environment variables, process limits, etc -- on a per-app-group-name basis. This means that if you want to start two versions of your application, with each version having different environment variables, then you must assign them under different application group names.
|
654
662
|
|
data/doc/Users guide Nginx.html
CHANGED
@@ -1167,18 +1167,19 @@ using the command line.</p></div>
|
|
1167
1167
|
<div class="foo toclevel4"><a href="#PassengerRuby">7.3.1. passenger_ruby <filename></a></div>
|
1168
1168
|
<div class="foo toclevel4"><a href="#_passenger_python_lt_filename_gt">7.3.2. passenger_python <filename></a></div>
|
1169
1169
|
<div class="foo toclevel4"><a href="#_passenger_nodejs_lt_filename_gt">7.3.3. passenger_nodejs <filename></a></div>
|
1170
|
-
<div class="foo toclevel4"><a href="#
|
1171
|
-
<div class="foo toclevel4"><a href="#
|
1172
|
-
<div class="foo toclevel4"><a href="#
|
1173
|
-
<div class="foo toclevel4"><a href="#
|
1174
|
-
<div class="foo toclevel4"><a href="#
|
1175
|
-
<div class="foo toclevel4"><a href="#
|
1176
|
-
<div class="foo toclevel4"><a href="#
|
1177
|
-
<div class="foo toclevel4"><a href="#
|
1178
|
-
<div class="foo toclevel4"><a href="#
|
1179
|
-
<div class="foo toclevel4"><a href="#
|
1180
|
-
<div class="foo toclevel4"><a href="#
|
1181
|
-
<div class="foo toclevel4"><a href="#
|
1170
|
+
<div class="foo toclevel4"><a href="#_passenger_meteor_app_settings_lt_filename_gt">7.3.4. passenger_meteor_app_settings <filename></a></div>
|
1171
|
+
<div class="foo toclevel4"><a href="#PassengerAppEnv">7.3.5. passenger_app_env <string></a></div>
|
1172
|
+
<div class="foo toclevel4"><a href="#RailsEnv">7.3.6. rails_env <string></a></div>
|
1173
|
+
<div class="foo toclevel4"><a href="#RackEnv">7.3.7. rack_env <string></a></div>
|
1174
|
+
<div class="foo toclevel4"><a href="#PassengerAppRoot">7.3.8. passenger_app_root <path/to/root></a></div>
|
1175
|
+
<div class="foo toclevel4"><a href="#PassengerAppGroupName">7.3.9. passenger_app_group_name <name></a></div>
|
1176
|
+
<div class="foo toclevel4"><a href="#PassengerAppType">7.3.10. passenger_app_type <name></a></div>
|
1177
|
+
<div class="foo toclevel4"><a href="#PassengerStartupFile">7.3.11. passenger_startup_file <filename></a></div>
|
1178
|
+
<div class="foo toclevel4"><a href="#PassengerSpawnMethod">7.3.12. passenger_spawn_method <string></a></div>
|
1179
|
+
<div class="foo toclevel4"><a href="#PassengerEnvVar">7.3.13. passenger_env_var <name> <value></a></div>
|
1180
|
+
<div class="foo toclevel4"><a href="#PassengerLoadShellEnvvars">7.3.14. passenger_load_shell_envvars <on|off></a></div>
|
1181
|
+
<div class="foo toclevel4"><a href="#PassengerRollingRestarts">7.3.15. passenger_rolling_restarts <on|off></a></div>
|
1182
|
+
<div class="foo toclevel4"><a href="#PassengerResistDeploymentErrors">7.3.16. passenger_resist_deployment_errors <on|off></a></div>
|
1182
1183
|
<div class="foo toclevel3"><a href="#_security_options">7.4. Security options</a></div>
|
1183
1184
|
<div class="foo toclevel4"><a href="#PassengerUserSwitching">7.4.1. passenger_user_switching <on|off></a></div>
|
1184
1185
|
<div class="foo toclevel4"><a href="#PassengerUser">7.4.2. passenger_user <username></a></div>
|
@@ -1254,7 +1255,7 @@ using the command line.</p></div>
|
|
1254
1255
|
<div class="foo toclevel4"><a href="#_caveats_amp_troubleshooting">10.1.3. Caveats & troubleshooting</a></div>
|
1255
1256
|
<div class="foo toclevel4"><a href="#finding_out_app_user">10.1.4. Finding out what user an application is running as</a></div>
|
1256
1257
|
<div class="foo toclevel3"><a href="#reducing_memory_usage">10.2. Copy-on-write memory support (reducing memory consumption of Ruby applications)</a></div>
|
1257
|
-
<div class="foo toclevel3"><a href="#
|
1258
|
+
<div class="foo toclevel3"><a href="#tuning_sse_websockets">10.3. Tuning for Server Sent Events and WebSockets</a></div>
|
1258
1259
|
<div class="foo toclevel3"><a href="#bundler_support">10.4. Bundler support</a></div>
|
1259
1260
|
<div class="foo toclevel4"><a href="#add_passenger_to_gemfile">10.4.1. Does Phusion Passenger itself need to be added to the Gemfile?</a></div>
|
1260
1261
|
<div class="foo toclevel3"><a href="#_installing_multiple_ruby_on_rails_versions">10.5. Installing multiple Ruby on Rails versions</a></div>
|
@@ -1640,6 +1641,25 @@ sudo apt-get update</pre>
|
|
1640
1641
|
</div>
|
1641
1642
|
</div>
|
1642
1643
|
</li>
|
1644
|
+
<li>
|
1645
|
+
<p>
|
1646
|
+
(Optional) If using <span class="monospaced">unattended-upgrades</span>, add our APT repository to the list of <span class="monospaced">Allowed-Origins</span> for upgrades, <span class="monospaced">/etc/apt/apt.conf.d/50unattended-upgrades</span>:
|
1647
|
+
</p>
|
1648
|
+
<div class="listingblock">
|
1649
|
+
<div class="content">
|
1650
|
+
<!-- Generator: GNU source-highlight 2.11.1
|
1651
|
+
by Lorenzo Bettini
|
1652
|
+
http://www.lorenzobettini.it
|
1653
|
+
http://www.gnu.org/software/src-highlite -->
|
1654
|
+
<pre><tt><span style="color: #990000">//</span> Automatically upgrade packages from these <span style="color: #990000">(</span>origin<span style="color: #990000">:</span>archive<span style="color: #990000">)</span> pairs
|
1655
|
+
Unattended-Upgrade<span style="color: #990000">::</span>Allowed-Origins {
|
1656
|
+
<span style="color: #990000">//</span> To check <span style="color: #FF0000">"Origin:"</span> and <span style="color: #FF0000">"Suite:"</span><span style="color: #990000">,</span> you could use e<span style="color: #990000">.</span>g<span style="color: #990000">.:</span>
|
1657
|
+
<span style="color: #990000">//</span> grep <span style="color: #FF0000">"Origin</span><span style="color: #CC33CC">\|</span><span style="color: #FF0000">Suite"</span> /var/lib/apt/lists/oss-binaries<span style="color: #990000">.</span>phusionpassenger<span style="color: #990000">.</span>com<span style="color: #990000">*</span>
|
1658
|
+
<span style="color: #FF0000">"Phusion:stable"</span><span style="color: #990000">;</span>
|
1659
|
+
}<span style="color: #990000">;</span></tt></pre>
|
1660
|
+
</div>
|
1661
|
+
</div>
|
1662
|
+
</li>
|
1643
1663
|
</ol></div>
|
1644
1664
|
</div>
|
1645
1665
|
<div class="sect3">
|
@@ -1735,10 +1755,11 @@ Restart Nginx:
|
|
1735
1755
|
</ol></div>
|
1736
1756
|
</dd>
|
1737
1757
|
</dl></div>
|
1758
|
+
<div class="paragraph"><p>You can now proceed with a chapter for Deploying your (specific type of) application.</p></div>
|
1738
1759
|
</div>
|
1739
1760
|
<div class="sect3">
|
1740
1761
|
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="inserting_passenger_root_for_apt"></span><h4 data-comment-topic="inserting-passenger-root-into-nginx-conf--1pmj19o" data-anchor="inserting_passenger_root_for_apt">2.3.3. Inserting <span class="monospaced">passenger_root</span> into nginx.conf</h4>
|
1741
|
-
<div class="paragraph"><p>
|
1762
|
+
<div class="paragraph"><p>If there is no <a href="#PassengerRoot">passenger_root</a> directive in <span class="monospaced">/etc/nginx/nginx.conf</span>, you can insert it yourself as follows:</p></div>
|
1742
1763
|
<div class="paragraph"><p>First, run the following command and take note of its output:</p></div>
|
1743
1764
|
<div class="listingblock">
|
1744
1765
|
<div class="content monospaced">
|
@@ -1762,7 +1783,6 @@ http {
|
|
1762
1783
|
}</pre>
|
1763
1784
|
</div>
|
1764
1785
|
</div>
|
1765
|
-
<div class="paragraph"><p>Once you’re done editing nginx.conf, continue with step 4.</p></div>
|
1766
1786
|
</div>
|
1767
1787
|
</div>
|
1768
1788
|
<div class="sect2">
|
@@ -3489,7 +3509,13 @@ Do you want to know which command to use for a different Ruby interpreter? 'rvm
|
|
3489
3509
|
<div class="paragraph"><p>This option allows one to specify the Node.js command to use. See <a href="#PassengerRuby">passenger_ruby</a> for more information. The default value is <em>node</em>, meaning that the Node.js command will be looked up according to the <span class="monospaced">PATH</span> environment variable.</p></div>
|
3490
3510
|
</div>
|
3491
3511
|
<div class="sect3">
|
3492
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="
|
3512
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="_passenger_meteor_app_settings_lt_filename_gt"></span><h4 data-comment-topic="passenger-meteor-app-settings-filename--1toqnaz" data-anchor="_passenger_meteor_app_settings_lt_filename_gt">7.3.4. passenger_meteor_app_settings <filename></h4>
|
3513
|
+
<div class="paragraph"><p><strong>Introduced in version 5.0.7.</strong></p></div>
|
3514
|
+
<div class="paragraph"><p>When using a Meteor application in non-bundled mode, use this option to specify a (JSON) file with settings for the application. Meteor will be started with the <span class="monospaced">--settings</span> parameter set to this option.</p></div>
|
3515
|
+
<div class="paragraph"><p>N.B. For bundled mode, Meteor requires you to put applications settings in the <span class="monospaced">METEOR_SETTINGS</span> environment variable.</p></div>
|
3516
|
+
</div>
|
3517
|
+
<div class="sect3">
|
3518
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppEnv"></span><h4 data-comment-topic="passenger-app-env-string--qjeimp" data-anchor="PassengerAppEnv">7.3.5. passenger_app_env <string></h4>
|
3493
3519
|
<div class="paragraph"><p>This option sets the value of the following environment variables:</p></div>
|
3494
3520
|
<div class="ulist"><ul>
|
3495
3521
|
<li>
|
@@ -3548,15 +3574,15 @@ In an <em>if</em> configuration scope.
|
|
3548
3574
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>production</em>.</p></div>
|
3549
3575
|
</div>
|
3550
3576
|
<div class="sect3">
|
3551
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="RailsEnv"></span><h4 data-comment-topic="rails-env-string--jlh7v9" data-anchor="RailsEnv">7.3.
|
3577
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="RailsEnv"></span><h4 data-comment-topic="rails-env-string--jlh7v9" data-anchor="RailsEnv">7.3.6. rails_env <string></h4>
|
3552
3578
|
<div class="paragraph"><p>An alias for <a href="#PassengerAppEnv">passenger_app_env</a>.</p></div>
|
3553
3579
|
</div>
|
3554
3580
|
<div class="sect3">
|
3555
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="RackEnv"></span><h4 data-comment-topic="rack-env-string--tqmrt0" data-anchor="RackEnv">7.3.
|
3581
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="RackEnv"></span><h4 data-comment-topic="rack-env-string--tqmrt0" data-anchor="RackEnv">7.3.7. rack_env <string></h4>
|
3556
3582
|
<div class="paragraph"><p>An alias for <a href="#PassengerAppEnv">passenger_app_env</a>.</p></div>
|
3557
3583
|
</div>
|
3558
3584
|
<div class="sect3">
|
3559
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppRoot"></span><h4 data-comment-topic="passenger-app-root-path-to-root--1dbudc6" data-anchor="PassengerAppRoot">7.3.
|
3585
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppRoot"></span><h4 data-comment-topic="passenger-app-root-path-to-root--1dbudc6" data-anchor="PassengerAppRoot">7.3.8. passenger_app_root <path/to/root></h4>
|
3560
3586
|
<div class="paragraph"><p><strong>Introduced in version 4.0.0.</strong></p></div>
|
3561
3587
|
<div class="paragraph"><p>By default, Phusion Passenger assumes that the application’s root directory
|
3562
3588
|
is the parent directory of the <em>public</em> directory. This option allows one to
|
@@ -3601,7 +3627,7 @@ In an <em>if</em> configuration scope.
|
|
3601
3627
|
</div>
|
3602
3628
|
</div>
|
3603
3629
|
<div class="sect3">
|
3604
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppGroupName"></span><h4 data-comment-topic="passenger-app-group-name-name--11jrx8u" data-anchor="PassengerAppGroupName">7.3.
|
3630
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppGroupName"></span><h4 data-comment-topic="passenger-app-group-name-name--11jrx8u" data-anchor="PassengerAppGroupName">7.3.9. passenger_app_group_name <name></h4>
|
3605
3631
|
<div class="paragraph"><p>Sets the name of the application group that the current application should belong to. Its default value is the virtual host’s root directory, plus (if it is set), the <a href="#PassengerAppEnv">application environment name</a>.</p></div>
|
3606
3632
|
<div class="paragraph"><p>Phusion Passenger stores and caches most application spawning settings — such as environment variables, process limits, etc — on a per-app-group-name basis. This means that if you want to start two versions of your application, with each version having different environment variables, then you must assign them under different application group names.</p></div>
|
3607
3633
|
<div class="paragraph"><p>For example, consider a situation in which you are running multiple versions of the same app, with each version intended for a different customer. You use the <span class="monospaced">CUSTOMER_NAME</span> environment variable to tell the app which customer that version should serve.</p></div>
|
@@ -3698,7 +3724,7 @@ In an <em>if</em> configuration scope.
|
|
3698
3724
|
<div class="paragraph"><p>In each place, it may be specified at most once.</p></div>
|
3699
3725
|
</div>
|
3700
3726
|
<div class="sect3">
|
3701
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppType"></span><h4 data-comment-topic="passenger-app-type-name--g9zccv" data-anchor="PassengerAppType">7.3.
|
3727
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerAppType"></span><h4 data-comment-topic="passenger-app-type-name--g9zccv" data-anchor="PassengerAppType">7.3.10. passenger_app_type <name></h4>
|
3702
3728
|
<div class="paragraph"><p><strong>Introduced in version 4.0.25.</strong></p></div>
|
3703
3729
|
<div class="paragraph"><p>By default, Phusion Passenger autodetects the type of the application, e.g. whether it’s a Ruby, Python, Node.js or Meteor app. If it’s unable to autodetect the type of the application (e.g. because you’ve specified a custom <a href="#PassengerStartupFile">passenger_startup_file</a>) then you can use this option to force Phusion Passenger to recognize the application as a specific type.</p></div>
|
3704
3730
|
<div class="paragraph"><p>Allowed values are:</p></div>
|
@@ -3764,7 +3790,7 @@ In an <em>if</em> configuration scope.
|
|
3764
3790
|
</div>
|
3765
3791
|
</div>
|
3766
3792
|
<div class="sect3">
|
3767
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerStartupFile"></span><h4 data-comment-topic="passenger-startup-file-filename--y4gy1m" data-anchor="PassengerStartupFile">7.3.
|
3793
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerStartupFile"></span><h4 data-comment-topic="passenger-startup-file-filename--y4gy1m" data-anchor="PassengerStartupFile">7.3.11. passenger_startup_file <filename></h4>
|
3768
3794
|
<div class="paragraph"><p><strong>Introduced in version 4.0.25.</strong></p></div>
|
3769
3795
|
<div class="paragraph"><p>This option specifies the startup file that Phusion Passenger should use when loading the application.</p></div>
|
3770
3796
|
<div class="paragraph"><p>Every application has a <strong>startup file</strong> or <strong>entry point file</strong>: a file where the application begins execution. Some languages have widely accepted conventions about how such a file should be called (e.g. Ruby, with its <span class="monospaced">config.ru</span>). Other languages have somewhat-accepted conventions (e.g. Node.js, with its <span class="monospaced">app.js</span>). In these cases, Phusion Passenger reuses these conventions, and executes applications through those files.</p></div>
|
@@ -3854,7 +3880,7 @@ In an <em>if</em> configuration scope.
|
|
3854
3880
|
</div>
|
3855
3881
|
</div>
|
3856
3882
|
<div class="sect3">
|
3857
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerSpawnMethod"></span><h4 data-comment-topic="passenger-spawn-method-string--1sc6njl" data-anchor="PassengerSpawnMethod">7.3.
|
3883
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerSpawnMethod"></span><h4 data-comment-topic="passenger-spawn-method-string--1sc6njl" data-anchor="PassengerSpawnMethod">7.3.12. passenger_spawn_method <string></h4>
|
3858
3884
|
<div class="admonitionblock">
|
3859
3885
|
<table><tr>
|
3860
3886
|
<td class="icon">
|
@@ -3947,7 +3973,7 @@ In an <em>if</em> configuration scope.
|
|
3947
3973
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>smart</em>.</p></div>
|
3948
3974
|
</div>
|
3949
3975
|
<div class="sect3">
|
3950
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerEnvVar"></span><h4 data-comment-topic="passenger-env-var-name-value--y8e7wh" data-anchor="PassengerEnvVar">7.3.
|
3976
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerEnvVar"></span><h4 data-comment-topic="passenger-env-var-name-value--y8e7wh" data-anchor="PassengerEnvVar">7.3.13. passenger_env_var <name> <value></h4>
|
3951
3977
|
<div class="paragraph"><p><strong>Introduced in version 5.0.0.</strong></p></div>
|
3952
3978
|
<div class="paragraph"><p>Sets environment variables to pass to the application. Environment variables are only set during application loading.</p></div>
|
3953
3979
|
<div class="paragraph"><p>Example:</p></div>
|
@@ -3989,7 +4015,7 @@ In an <em>if</em> configuration scope.
|
|
3989
4015
|
<div class="paragraph"><p>In each place, it may be specified multiple times.</p></div>
|
3990
4016
|
</div>
|
3991
4017
|
<div class="sect3">
|
3992
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerLoadShellEnvvars"></span><h4 data-comment-topic="passenger-load-shell-envvars-on-off--fw5u4l" data-anchor="PassengerLoadShellEnvvars">7.3.
|
4018
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerLoadShellEnvvars"></span><h4 data-comment-topic="passenger-load-shell-envvars-on-off--fw5u4l" data-anchor="PassengerLoadShellEnvvars">7.3.14. passenger_load_shell_envvars <on|off></h4>
|
3993
4019
|
<div class="paragraph"><p><strong>Introduced in version 4.0.20.</strong></p></div>
|
3994
4020
|
<div class="paragraph"><p>Enables or disables the loading of shell environment variables before spawning the application.</p></div>
|
3995
4021
|
<div class="paragraph"><p>If this option is turned on, and the user’s shell is <span class="monospaced">bash</span>, then applications are loaded by running them with <span class="monospaced">bash -l -c</span>. Otherwise, they are loaded by running them directly from the <span class="monospaced">PassengerHelperAgent</span> process.</p></div>
|
@@ -4019,7 +4045,7 @@ In an <em>if</em> configuration scope.
|
|
4019
4045
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>on</em>.</p></div>
|
4020
4046
|
</div>
|
4021
4047
|
<div class="sect3">
|
4022
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerRollingRestarts"></span><h4 data-comment-topic="passenger-rolling-restarts" data-anchor="PassengerRollingRestarts">7.3.
|
4048
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerRollingRestarts"></span><h4 data-comment-topic="passenger-rolling-restarts" data-anchor="PassengerRollingRestarts">7.3.15. passenger_rolling_restarts <on|off></h4>
|
4023
4049
|
<div class="paragraph"><p><strong>This feature is only available in <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a>. It was introduced in version 3.0.0. <a href="https://www.phusionpassenger.com/download">Buy Phusion Passenger Enterprise here.</a></strong></p></div>
|
4024
4050
|
<div class="paragraph"><p>Enables or disables support for rolling restarts through restart.txt. Normally when you
|
4025
4051
|
restart an application by touching restart.txt, Phusion Passenger would
|
@@ -4106,7 +4132,7 @@ In an <em>if</em> configuration scope.
|
|
4106
4132
|
<div class="paragraph"><p>In each place, it may be specified at most once. The default value is <em>off</em>.</p></div>
|
4107
4133
|
</div>
|
4108
4134
|
<div class="sect3">
|
4109
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerResistDeploymentErrors"></span><h4 data-comment-topic="passenger-resist-deployment-errors-on-off--k9yf1" data-anchor="PassengerResistDeploymentErrors">7.3.
|
4135
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="PassengerResistDeploymentErrors"></span><h4 data-comment-topic="passenger-resist-deployment-errors-on-off--k9yf1" data-anchor="PassengerResistDeploymentErrors">7.3.16. passenger_resist_deployment_errors <on|off></h4>
|
4110
4136
|
<div class="paragraph"><p><strong>This feature is only available in <a href="https://www.phusionpassenger.com/enterprise">Phusion Passenger Enterprise</a>. It was introduced in version 3.0.0. <a href="https://www.phusionpassenger.com/download">Buy Phusion Passenger Enterprise here.</a></strong></p></div>
|
4111
4137
|
<div class="paragraph"><p>Enables or disables resistance against deployment errors.</p></div>
|
4112
4138
|
<div class="paragraph"><p>Suppose you’ve upgraded your application and you’ve issued a command to restart it (e.g. by touching restart.txt), but the application code contains an error that prevents Phusion Passenger from successfully spawning a process (e.g. a syntax error). Phusion Passenger would normally display an error message in response to this.</p></div>
|
@@ -6534,39 +6560,29 @@ MRI Ruby >= 2.0. Versions prior to 2.0 did not have a copy-on-write friendly
|
|
6534
6560
|
</ul></div>
|
6535
6561
|
</div>
|
6536
6562
|
<div class="sect2">
|
6537
|
-
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="
|
6538
|
-
<div class="paragraph"><p>Phusion Passenger
|
6539
|
-
|
6540
|
-
|
6541
|
-
<div class="listingblock">
|
6542
|
-
<div class="content monospaced">
|
6543
|
-
<pre>
|
6544
|
-
|
6545
|
-
|
6546
|
-
set :use_sudo, false
|
6547
|
-
set :deploy_to, "/path-to-your-web-app-directory/#{application}"
|
6548
|
-
set :scm, "git"
|
6549
|
-
|
6550
|
-
role :app, domain
|
6551
|
-
role :web, domain
|
6552
|
-
role :db, domain, :primary => true
|
6553
|
-
|
6554
|
-
namespace :deploy do
|
6555
|
-
task :start, :roles => :app do
|
6556
|
-
run "touch #{current_release}/tmp/restart.txt"
|
6557
|
-
end
|
6558
|
-
|
6559
|
-
task :stop, :roles => :app do
|
6560
|
-
# Do nothing.
|
6561
|
-
end
|
6562
|
-
|
6563
|
-
desc "Restart Application"
|
6564
|
-
task :restart, :roles => :app do
|
6565
|
-
run "touch #{current_release}/tmp/restart.txt"
|
6566
|
-
end
|
6567
|
-
end</pre>
|
6563
|
+
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="tuning_sse_websockets"></span><h3 data-comment-topic="tuning-for-server-sent-events-and-websockets-8ec9td" data-anchor="tuning_sse_websockets">10.3. Tuning for Server Sent Events and WebSockets</h3>
|
6564
|
+
<div class="paragraph"><p>Phusion Passenger supports Server Sent Events (SSE) and WebSockets out of the box with no configuration, but there are some things you need to know.</p></div>
|
6565
|
+
<div class="paragraph"><p>First, WebSockets are <a href="https://github.com/phusion/passenger/issues/1202">not yet supported when using the Apache integration mode</a>.</p></div>
|
6566
|
+
<div class="paragraph"><p>Second, for Ruby apps only, you need to insert a configuration snippet inside your <span class="monospaced">config.ru</span>:</p></div>
|
6567
|
+
<div class="listingblock">
|
6568
|
+
<div class="content monospaced">
|
6569
|
+
<pre><strong>if</strong> defined?(PhusionPassenger)
|
6570
|
+
PhusionPassenger.advertised_concurrency_level = 0
|
6571
|
+
<strong>end</strong></pre>
|
6568
6572
|
</div>
|
6569
6573
|
</div>
|
6574
|
+
<div class="admonitionblock">
|
6575
|
+
<table><tr>
|
6576
|
+
<td class="icon">
|
6577
|
+
<img src="./images/icons/note.png" alt="Note">
|
6578
|
+
</td>
|
6579
|
+
<td class="content">
|
6580
|
+
<div class="paragraph"><p>This snippet tells Passenger that your Ruby app will handle SSE and WebSockets. In response, Passenger will adjust the connection concurrency settings for your app. Without this configuration snippet, SSE and WebSockets still work, but with degraded performance.</p></div>
|
6581
|
+
<div class="paragraph"><p>This configuration snippet is currently necessary because of the way Passenger is implemented. We are <a href="https://github.com/phusion/passenger/issues/1195">working on improving this mechanism</a>. One day, the above configuration snippet will no longer be necessary. For now, you should include the above configuration snippet for optimal SSE and WebSocket performance.</p></div>
|
6582
|
+
</td>
|
6583
|
+
</tr></table>
|
6584
|
+
</div>
|
6585
|
+
<div class="paragraph"><p>Finally, you can find Passenger SSE and WebSocket demo apps on <a href="https://www.phusionpassenger.com/documentation_and_support">the Passenger documentation overview page</a>, under section "Demos".</p></div>
|
6570
6586
|
</div>
|
6571
6587
|
<div class="sect2">
|
6572
6588
|
<a href="javascript:void(0)" class="comments empty" title="Add a comment"><span class="count"></span></a><span class="anchor_helper" id="bundler_support"></span><h3 data-comment-topic="bundler-support-19v1h43" data-anchor="bundler_support">10.4. Bundler support</h3>
|
@@ -7415,25 +7431,13 @@ Phusion Passenger’s installer, build system and administration tools are writt
|
|
7415
7431
|
<p>
|
7416
7432
|
Certain internally used tools, such as the crash handler (which generates a backtrace in case Phusion Passenger crash) and the prespawn script (used to implement
|
7417
7433
|
<a href="#PassengerPreStart">passenger_pre_start</a>)
|
7418
|
-
are written in Ruby as well.
|
7419
|
-
</p>
|
7420
|
-
</li>
|
7421
|
-
<li>
|
7422
|
-
<p>
|
7423
|
-
Ruby web application support is implemented in Ruby.
|
7424
|
-
</p>
|
7425
|
-
</li>
|
7426
|
-
<li>
|
7427
|
-
<p>
|
7428
|
-
If you use <a href="#flying_passenger">Flying Passenger</a>, then the Flying Passenger daemon is written in Ruby. The daemon is a small (less than 500 lines of code) and offloads most tasks to the C++ core.
|
7429
|
-
</p>
|
7430
|
-
</li>
|
7431
|
-
<li>
|
7432
|
-
<p>
|
7433
|
-
If you use <a href="Users%20guide%20Standalone.html">Phusion Passenger Standalone</a>, then the frontend (the <span class="monospaced">passenger</span> command) is written in Ruby. The frontend is small (less than 1500 lines of code) and offloads most tasks to the C++ core.
|
7434
7434
|
</p>
|
7435
7435
|
</li>
|
7436
7436
|
</ul></div>
|
7437
|
+
<div class="paragraph"><p>are written in Ruby as well.
|
7438
|
+
* Ruby web application support is implemented in Ruby.
|
7439
|
+
* If you use <a href="#flying_passenger">Flying Passenger</a>, then the Flying Passenger daemon is written in Ruby. The daemon is a small (less than 500 lines of code) and offloads most tasks to the C<span class="monospaced"> core.
|
7440
|
+
* If you use <a href="Users%20guide%20Standalone.html">Phusion Passenger Standalone</a>, then the frontend (the <span class="monospaced">passenger</span> command) is written in Ruby. The frontend is small (less than 1500 lines of code) and offloads most tasks to the C</span> core.</p></div>
|
7437
7441
|
<div class="paragraph"><p>Other than the aforementioned aspects, Phusion Passenger does not use Ruby during normal operation. For example, if you run Python WSGI web applications on Phusion Passenger, then there will be (almost) no Ruby code running on the system.</p></div>
|
7438
7442
|
</div>
|
7439
7443
|
<div class="sect3">
|
@@ -8184,7 +8188,8 @@ echo <span style="color: #FF0000">'export PATH=/usr/local/bin:$PATH'</span> <spa
|
|
8184
8188
|
<td class="icon">
|
8185
8189
|
<img src="./images/icons/note.png" alt="Note">
|
8186
8190
|
</td>
|
8187
|
-
<td class="content">Depending on the system, the bashrc file may have a different filename. On Debian and Ubuntu, it’s <span class="monospaced">/etc/bash.bashrc</span
|
8191
|
+
<td class="content">Depending on the system, the bashrc file may have a different filename. On Debian and Ubuntu, it’s <span class="monospaced">/etc/bash.bashrc</span>.
|
8192
|
+
NOTE: Make sure your <span class="monospaced">~/.bashrc</span> is actually included by your <span class="monospaced">~/.profile</span>, which might not be the case if you created the user with <span class="monospaced">useradd</span> instead of <span class="monospaced">adduser</span> for example</td>
|
8188
8193
|
</tr></table>
|
8189
8194
|
</div>
|
8190
8195
|
</div>
|
@@ -8260,7 +8265,7 @@ When running Apache, use the <span class="monospaced">PassEnv</span> and <span c
|
|
8260
8265
|
</li>
|
8261
8266
|
<li>
|
8262
8267
|
<p>
|
8263
|
-
When running Nginx, use the <a href="#
|
8268
|
+
When running Nginx, use the <a href="#PassengerEnvVar">passenger_env_var</a> directive.
|
8264
8269
|
</p>
|
8265
8270
|
</li>
|
8266
8271
|
<li>
|