passenger 2.2.5 → 2.2.6
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.
- data/NEWS +31 -1
- data/bin/passenger-install-apache2-module +7 -1
- data/bin/passenger-install-nginx-module +1 -1
- data/bin/passenger-memory-stats +3 -3
- data/doc/Users guide Apache.html +112 -13
- data/doc/Users guide Apache.txt +70 -9
- data/doc/Users guide Nginx.html +1 -1
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/Configuration_8h-source.html +1 -1
- data/doc/cxxapi/DirectoryMapper_8h-source.html +7 -7
- data/doc/cxxapi/Hooks_8h-source.html +1 -1
- data/doc/cxxapi/annotated.html +1 -1
- data/doc/cxxapi/classHooks-members.html +1 -1
- data/doc/cxxapi/classHooks.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
- data/doc/cxxapi/classes.html +1 -1
- data/doc/cxxapi/definitions_8h-source.html +1 -1
- data/doc/cxxapi/files.html +1 -1
- data/doc/cxxapi/functions.html +1 -1
- data/doc/cxxapi/functions_func.html +1 -1
- data/doc/cxxapi/graph_legend.html +1 -1
- data/doc/cxxapi/group__Configuration.html +1 -1
- data/doc/cxxapi/group__Core.html +1 -1
- data/doc/cxxapi/group__Hooks.html +1 -1
- data/doc/cxxapi/group__Support.html +1 -1
- data/doc/cxxapi/main.html +1 -1
- data/doc/cxxapi/modules.html +1 -1
- data/doc/rdoc/classes/ConditionVariable.html +59 -59
- data/doc/rdoc/classes/Exception.html +11 -11
- data/doc/rdoc/classes/GC.html +4 -4
- data/doc/rdoc/classes/IO.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger.html +13 -13
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +32 -32
- data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +42 -42
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +24 -24
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +62 -66
- data/doc/rdoc/classes/PhusionPassenger/Railz/CGIFixed.html +23 -23
- data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +30 -30
- data/doc/rdoc/classes/PhusionPassenger/Railz/RequestHandler.html +8 -8
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +384 -384
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +36 -36
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +7 -7
- data/doc/rdoc/classes/PlatformInfo.html +234 -200
- data/doc/rdoc/classes/RakeExtensions.html +4 -4
- data/doc/rdoc/classes/Signal.html +27 -27
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -3
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +10 -9
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +148 -147
- data/ext/apache2/DirectoryMapper.h +6 -6
- data/ext/common/Utils.cpp +31 -5
- data/ext/common/Version.h +1 -1
- data/ext/nginx/Configuration.c +4 -8
- data/ext/nginx/Configuration.h +2 -2
- data/ext/nginx/ContentHandler.c +11 -7
- data/ext/oxt/thread.hpp +12 -11
- data/lib/phusion_passenger/constants.rb +1 -1
- data/lib/phusion_passenger/dependencies.rb +40 -25
- data/lib/phusion_passenger/platform_info.rb +28 -11
- data/lib/phusion_passenger/railz/application_spawner.rb +3 -7
- data/lib/phusion_passenger/templates/apache2/deployment_example.txt.erb +7 -4
- data/lib/phusion_passenger/utils.rb +1 -0
- data/test/integration_tests/apache2_tests.rb +16 -0
- data/test/integration_tests/nginx_tests.rb +46 -0
- data/test/stub/MessageServer.dSYM/Contents/Info.plist +25 -0
- data/test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer +0 -0
- data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
- metadata +4 -2
@@ -1,16 +1,19 @@
|
|
1
1
|
<banner>Deploying a Ruby on Rails application: an example</banner>
|
2
2
|
|
3
|
-
Suppose you have a
|
4
|
-
|
5
|
-
<b>/somewhere/public</b>, like this:
|
3
|
+
Suppose you have a Rails application in <b>/somewhere</b>. Add a virtual host to your
|
4
|
+
Apache configuration file and set its DocumentRoot to <b>/somewhere/public</b>:
|
6
5
|
<b>
|
7
6
|
<VirtualHost *:80>
|
8
7
|
ServerName www.yourhost.com
|
9
8
|
DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
|
9
|
+
<Directory /somewhere/public>
|
10
|
+
AllowOverride all # <-- relax Apache security settings
|
11
|
+
Options -MultiViews # <-- MultiViews must be turned off
|
12
|
+
</Directory>
|
10
13
|
</VirtualHost>
|
11
14
|
</b>
|
12
15
|
And that's it! You may also want to check the Users Guide for security and
|
13
|
-
optimization tips and other useful information:
|
16
|
+
optimization tips, troubleshooting and other useful information:
|
14
17
|
|
15
18
|
<yellow><%= @users_guide %></yellow>
|
16
19
|
|
@@ -554,6 +554,22 @@ describe "Apache 2 module" do
|
|
554
554
|
it_should_behave_like "HelloWorld Rack application"
|
555
555
|
end
|
556
556
|
|
557
|
+
describe "Rack application running within Rails directory structure" do
|
558
|
+
before :all do
|
559
|
+
@stub = setup_rails_stub('mycook')
|
560
|
+
FileUtils.cp_r("stub/rack/.", @stub.app_root)
|
561
|
+
@apache2.set_vhost('passenger.test', File.expand_path(@stub.app_root) + "/public")
|
562
|
+
@apache2.start
|
563
|
+
@server = "http://passenger.test:#{@apache2.port}"
|
564
|
+
end
|
565
|
+
|
566
|
+
after :all do
|
567
|
+
@stub.destroy
|
568
|
+
end
|
569
|
+
|
570
|
+
it_should_behave_like "HelloWorld Rack application"
|
571
|
+
end
|
572
|
+
|
557
573
|
describe "WSGI application running in root URI" do
|
558
574
|
before :all do
|
559
575
|
@stub = setup_stub('wsgi')
|
@@ -94,6 +94,52 @@ describe "Phusion Passenger for Nginx" do
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
describe "Rack application running in root URI" do
|
98
|
+
before :all do
|
99
|
+
@server = "http://passenger.test:#{@nginx.port}"
|
100
|
+
@stub = setup_stub('rack')
|
101
|
+
@nginx.add_server do |server|
|
102
|
+
server[:server_name] = "passenger.test"
|
103
|
+
server[:root] = File.expand_path("#{@stub.app_root}/public")
|
104
|
+
end
|
105
|
+
@nginx.start
|
106
|
+
end
|
107
|
+
|
108
|
+
after :all do
|
109
|
+
@stub.destroy
|
110
|
+
end
|
111
|
+
|
112
|
+
before :each do
|
113
|
+
@stub.reset
|
114
|
+
end
|
115
|
+
|
116
|
+
it_should_behave_like "HelloWorld Rack application"
|
117
|
+
end
|
118
|
+
|
119
|
+
describe "Rack application running within Rails directory structure" do
|
120
|
+
before :all do
|
121
|
+
@server = "http://passenger.test:#{@nginx.port}"
|
122
|
+
@stub = setup_rails_stub('mycook')
|
123
|
+
FileUtils.cp_r("stub/rack/.", @stub.app_root)
|
124
|
+
@nginx.add_server do |server|
|
125
|
+
server[:server_name] = "passenger.test"
|
126
|
+
server[:root] = File.expand_path("#{@stub.app_root}/public")
|
127
|
+
end
|
128
|
+
@nginx.start
|
129
|
+
end
|
130
|
+
|
131
|
+
after :all do
|
132
|
+
@stub.destroy
|
133
|
+
end
|
134
|
+
|
135
|
+
before :each do
|
136
|
+
@stub.reset
|
137
|
+
FileUtils.cp_r("stub/rack/.", @stub.app_root)
|
138
|
+
end
|
139
|
+
|
140
|
+
it_should_behave_like "HelloWorld Rack application"
|
141
|
+
end
|
142
|
+
|
97
143
|
|
98
144
|
##### Helper methods #####
|
99
145
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>English</string>
|
7
|
+
<key>CFBundleIdentifier</key>
|
8
|
+
<string>com.apple.xcode.dsym.MessageServer</string>
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
10
|
+
<string>6.0</string>
|
11
|
+
<key>CFBundlePackageType</key>
|
12
|
+
<string>dSYM</string>
|
13
|
+
<key>CFBundleSignature</key>
|
14
|
+
<string>????</string>
|
15
|
+
<key>CFBundleShortVersionString</key>
|
16
|
+
<string>1.0</string>
|
17
|
+
<key>CFBundleVersion</key>
|
18
|
+
<string>1</string>
|
19
|
+
<key>dSYM_UUID</key>
|
20
|
+
<dict>
|
21
|
+
<key>i386</key>
|
22
|
+
<string>7B7098EA-C075-7166-E6F2-B4822BCD721D</string>
|
23
|
+
</dict>
|
24
|
+
</dict>
|
25
|
+
</plist>
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phusion - http://www.phusion.nl/
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-18 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -1209,6 +1209,8 @@ files:
|
|
1209
1209
|
- test/stub/message_channel.rb
|
1210
1210
|
- test/stub/message_channel_2.rb
|
1211
1211
|
- test/stub/message_channel_3.rb
|
1212
|
+
- test/stub/MessageServer.dSYM/Contents/Info.plist
|
1213
|
+
- test/stub/MessageServer.dSYM/Contents/Resources/DWARF/MessageServer
|
1212
1214
|
- test/stub/nginx/koi-utf
|
1213
1215
|
- test/stub/nginx/koi-win
|
1214
1216
|
- test/stub/nginx/mime.types
|