passenger 4.0.10 → 4.0.13
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.tar.gz.asc +7 -7
- data/.gitignore +66 -0
- data/.travis.yml +2 -5
- data/CONTRIBUTORS +2 -1
- data/NEWS +24 -0
- data/README.md +5 -10
- data/bin/passenger +1 -0
- data/bin/passenger-config +29 -3
- data/bin/passenger-install-nginx-module +1 -1
- data/build/basics.rb +8 -2
- data/build/debian.rb +22 -0
- data/build/integration_tests.rb +16 -2
- data/build/misc.rb +3 -0
- data/build/packaging.rb +77 -29
- data/build/preprocessor.rb +13 -10
- data/build/test_basics.rb +6 -0
- data/debian.template/locations.ini.template +13 -0
- data/debian.template/ruby-passenger-dev.install.template +3 -0
- data/debian.template/ruby-passenger-doc.install.template +2 -0
- data/debian.template/ruby-passenger.install.template +12 -0
- data/debian.template/rules.template +1 -0
- data/dev/run_travis.sh +46 -14
- data/doc/Architectural overview.html +25 -34
- data/doc/Packaging.html +31 -23
- data/doc/Packaging.txt.md +32 -23
- data/doc/Security of user switching support.html +16 -18
- data/doc/Users guide Apache.html +231 -239
- data/doc/Users guide Nginx.html +219 -227
- data/doc/Users guide Standalone.html +12 -15
- data/doc/users_guide_snippets/installation.txt +3 -2
- data/ext/common/ApplicationPool2/Implementation.cpp +6 -16
- data/ext/common/Constants.h +1 -1
- data/ext/common/ResourceLocator.h +6 -6
- data/ext/common/UnionStation.h +11 -15
- data/ext/common/Utils/ProcessMetricsCollector.h +7 -4
- data/ext/common/agents/HelperAgent/AgentOptions.h +6 -0
- data/ext/common/agents/HelperAgent/Main.cpp +5 -0
- data/ext/common/agents/HelperAgent/RequestHandler.h +9 -1
- data/ext/common/agents/LoggingAgent/Main.cpp +4 -0
- data/ext/common/agents/Watchdog/Main.cpp +7 -0
- data/ext/nginx/config +1 -1
- data/ext/oxt/Readme.txt +15 -0
- data/helper-scripts/download_binaries/extconf.rb +83 -0
- data/lib/phusion_passenger.rb +78 -80
- data/lib/phusion_passenger/abstract_installer.rb +22 -8
- data/lib/phusion_passenger/console_text_template.rb +1 -1
- data/lib/phusion_passenger/loader_shared_helpers.rb +2 -1
- data/lib/phusion_passenger/native_support.rb +22 -9
- data/lib/phusion_passenger/packaging.rb +7 -2
- data/lib/phusion_passenger/platform_info.rb +28 -1
- data/lib/phusion_passenger/platform_info/apache.rb +246 -26
- data/lib/phusion_passenger/platform_info/apache_detector.rb +232 -0
- data/lib/phusion_passenger/platform_info/depcheck_specs/ruby.rb +4 -0
- data/lib/phusion_passenger/platform_info/linux.rb +7 -0
- data/lib/phusion_passenger/public_api.rb +11 -2
- data/lib/phusion_passenger/standalone/command.rb +11 -14
- data/lib/phusion_passenger/standalone/runtime_installer.rb +313 -275
- data/lib/phusion_passenger/standalone/runtime_locator.rb +163 -0
- data/lib/phusion_passenger/standalone/start_command.rb +38 -46
- data/lib/phusion_passenger/utils/json.rb +329 -0
- data/lib/phusion_passenger/utils/tmpio.rb +1 -0
- data/passenger.gemspec +4 -0
- data/resources/mime.types +1 -0
- data/resources/oss-binaries.phusionpassenger.com.crt +84 -0
- data/resources/release.txt +0 -0
- data/resources/templates/standalone/download_tool_missing.txt.erb +18 -0
- data/rpm/README.rdoc +117 -0
- data/rpm/config/apache-passenger.conf.in +19 -0
- data/rpm/config/nginx-passenger.conf.in +10 -0
- data/rpm/config/rubygem-passenger.te +10 -0
- data/rpm/doc/README.nginx-alternatives +5 -0
- data/rpm/doc/example_yum_repository_htaccess +5 -0
- data/rpm/doc/footer.shtml +12 -0
- data/rpm/doc/header.shtml +156 -0
- data/rpm/nginx-alternatives.spec +97 -0
- data/rpm/passenger-release.spec +91 -0
- data/rpm/passenger.spec +667 -0
- data/rpm/patches/passenger-force-native.patch +63 -0
- data/rpm/release/RPM-GPG-KEY-stealthymonkeys +33 -0
- data/rpm/release/build-release.sh +35 -0
- data/rpm/release/build.rb +301 -0
- data/rpm/release/create-mirrors.sh +16 -0
- data/rpm/release/mirrors +1 -0
- data/rpm/release/mock-repo/comps.xml +21 -0
- data/rpm/release/mock-repo/rubygem-daemon_controller-0.2.5-1.noarch.rpm +0 -0
- data/rpm/release/mock-repo/rubygem-file-tail-1.0.5-1.noarch.rpm +0 -0
- data/rpm/release/mock-repo/rubygem-spruz-0.2.2-1.noarch.rpm +0 -0
- data/rpm/release/mocksetup-first.sh +102 -0
- data/rpm/release/mocksetup.sh +67 -0
- data/test/integration_tests/apache2_tests.rb +1 -1
- data/test/integration_tests/downloaded_binaries_tests.rb +76 -0
- data/test/integration_tests/native_packaging_spec.rb +38 -6
- data/test/integration_tests/source_packaging_test.rb +198 -0
- data/test/integration_tests/standalone_tests.rb +275 -0
- data/test/ruby/admin_tools_spec.rb +1 -1
- data/test/ruby/rails4.0/loader_spec.rb +28 -0
- data/test/ruby/rails4.0/preloader_spec.rb +34 -0
- data/test/ruby/spec_helper.rb +5 -1
- data/test/ruby/standalone/runtime_installer_spec.rb +399 -0
- data/test/ruby/standalone/runtime_locator_spec.rb +214 -0
- data/test/stub/apache2/httpd.conf.erb +18 -1
- data/test/stub/rack/tmp/.gitignore +0 -0
- data/test/stub/rails2.3/log/.gitignore +1 -0
- data/test/stub/rails2.3/public/.gitignore +1 -0
- data/test/stub/rails2.3/tmp/cache/.gitignore +1 -0
- data/test/stub/rails2.3/tmp/pids/.gitignore +1 -0
- data/test/stub/rails2.3/tmp/sessions/.gitignore +1 -0
- data/test/stub/rails2.3/tmp/sockets/.gitignore +1 -0
- data/test/stub/rails3.0/.gitignore +4 -0
- data/test/stub/rails3.0/Gemfile +1 -1
- data/test/stub/rails3.0/Gemfile.lock +1 -1
- data/test/stub/rails3.0/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.0/log/.gitignore +0 -0
- data/test/stub/rails3.0/public/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.0/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails3.1/.gitignore +15 -0
- data/test/stub/rails3.1/Gemfile +1 -1
- data/test/stub/rails3.1/Gemfile.lock +1 -1
- data/test/stub/rails3.1/app/mailers/.gitkeep +0 -0
- data/test/stub/rails3.1/app/models/.gitkeep +0 -0
- data/test/stub/rails3.1/lib/assets/.gitkeep +0 -0
- data/test/stub/rails3.1/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.1/log/.gitkeep +0 -0
- data/test/stub/rails3.1/test/fixtures/.gitkeep +0 -0
- data/test/stub/rails3.1/test/functional/.gitkeep +0 -0
- data/test/stub/rails3.1/test/integration/.gitkeep +0 -0
- data/test/stub/rails3.1/test/unit/.gitkeep +0 -0
- data/test/stub/rails3.1/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.1/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails3.2/.gitignore +15 -0
- data/test/stub/rails3.2/app/mailers/.gitkeep +0 -0
- data/test/stub/rails3.2/app/models/.gitkeep +0 -0
- data/test/stub/rails3.2/lib/assets/.gitkeep +0 -0
- data/test/stub/rails3.2/lib/tasks/.gitkeep +0 -0
- data/test/stub/rails3.2/log/.gitkeep +0 -0
- data/test/stub/rails3.2/test/fixtures/.gitkeep +0 -0
- data/test/stub/rails3.2/test/functional/.gitkeep +0 -0
- data/test/stub/rails3.2/test/integration/.gitkeep +0 -0
- data/test/stub/rails3.2/test/unit/.gitkeep +0 -0
- data/test/stub/rails3.2/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/stub/rails3.2/vendor/plugins/.gitkeep +0 -0
- data/test/stub/rails4.0/.gitignore +16 -0
- data/test/stub/rails4.0/Gemfile +45 -0
- data/test/stub/rails4.0/Gemfile.lock +126 -0
- data/test/stub/rails4.0/README.rdoc +28 -0
- data/test/stub/rails4.0/Rakefile +6 -0
- data/test/stub/rails4.0/app/assets/images/.keep +0 -0
- data/test/stub/rails4.0/app/assets/javascripts/application.js +16 -0
- data/test/stub/rails4.0/app/assets/stylesheets/application.css +13 -0
- data/test/stub/rails4.0/app/controllers/application_controller.rb +5 -0
- data/test/stub/rails4.0/app/controllers/concerns/.keep +0 -0
- data/test/stub/rails4.0/app/helpers/application_helper.rb +2 -0
- data/test/stub/rails4.0/app/mailers/.keep +0 -0
- data/test/stub/rails4.0/app/models/.keep +0 -0
- data/test/stub/rails4.0/app/models/concerns/.keep +0 -0
- data/test/stub/rails4.0/app/views/layouts/application.html.erb +14 -0
- data/test/stub/rails4.0/bin/bundle +3 -0
- data/test/stub/rails4.0/bin/rails +4 -0
- data/test/stub/rails4.0/bin/rake +4 -0
- data/test/stub/rails4.0/config.ru +4 -0
- data/test/stub/rails4.0/config/application.rb +23 -0
- data/test/stub/rails4.0/config/boot.rb +4 -0
- data/test/stub/rails4.0/config/database.yml +25 -0
- data/test/stub/rails4.0/config/environment.rb +5 -0
- data/test/stub/rails4.0/config/environments/development.rb +29 -0
- data/test/stub/rails4.0/config/environments/production.rb +80 -0
- data/test/stub/rails4.0/config/environments/test.rb +36 -0
- data/test/stub/rails4.0/config/initializers/backtrace_silencers.rb +7 -0
- data/test/stub/rails4.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/stub/rails4.0/config/initializers/inflections.rb +16 -0
- data/test/stub/rails4.0/config/initializers/mime_types.rb +5 -0
- data/test/stub/rails4.0/config/initializers/passenger.rb +1 -0
- data/test/stub/rails4.0/config/initializers/secret_token.rb +12 -0
- data/test/stub/rails4.0/config/initializers/session_store.rb +3 -0
- data/test/stub/rails4.0/config/initializers/wrap_parameters.rb +14 -0
- data/test/stub/rails4.0/config/locales/en.yml +23 -0
- data/test/stub/rails4.0/config/routes.rb +57 -0
- data/test/stub/rails4.0/db/seeds.rb +7 -0
- data/test/stub/rails4.0/lib/assets/.keep +0 -0
- data/test/stub/rails4.0/lib/tasks/.keep +0 -0
- data/test/stub/rails4.0/log/.keep +0 -0
- data/test/stub/rails4.0/public/404.html +58 -0
- data/test/stub/rails4.0/public/422.html +58 -0
- data/test/stub/rails4.0/public/500.html +57 -0
- data/test/stub/rails4.0/public/favicon.ico +0 -0
- data/test/stub/rails4.0/public/robots.txt +5 -0
- data/test/stub/rails4.0/test/controllers/.keep +0 -0
- data/test/stub/rails4.0/test/fixtures/.keep +0 -0
- data/test/stub/rails4.0/test/helpers/.keep +0 -0
- data/test/stub/rails4.0/test/integration/.keep +0 -0
- data/test/stub/rails4.0/test/mailers/.keep +0 -0
- data/test/stub/rails4.0/test/models/.keep +0 -0
- data/test/stub/rails4.0/test/test_helper.rb +15 -0
- data/test/stub/rails4.0/vendor/assets/javascripts/.keep +0 -0
- data/test/stub/rails4.0/vendor/assets/stylesheets/.keep +0 -0
- data/test/stub/rails_apps/1.2/empty/.gitignore +3 -0
- data/test/stub/rails_apps/1.2/empty/app/models/.gitignore +0 -0
- data/test/stub/rails_apps/1.2/empty/db/.gitignore +0 -0
- data/test/stub/rails_apps/1.2/empty/public/.htaccess +40 -0
- data/test/stub/rails_apps/1.2/empty/public/stylesheets/.gitignore +0 -0
- data/test/stub/rails_apps/2.0/empty/.gitignore +3 -0
- data/test/stub/rails_apps/2.0/empty/app/models/.gitignore +0 -0
- data/test/stub/rails_apps/2.0/empty/db/.gitignore +0 -0
- data/test/stub/rails_apps/2.0/empty/public/.htaccess +40 -0
- data/test/stub/rails_apps/2.0/empty/public/stylesheets/.gitignore +0 -0
- data/test/stub/rails_apps/2.2/empty/.gitignore +3 -0
- data/test/stub/rails_apps/2.2/empty/app/models/.gitignore +0 -0
- data/test/stub/rails_apps/2.2/empty/db/.gitignore +0 -0
- data/test/stub/rails_apps/2.2/empty/public/stylesheets/.gitignore +0 -0
- data/test/stub/rails_apps/2.3/empty/.gitignore +3 -0
- data/test/stub/rails_apps/2.3/empty/app/models/.gitignore +0 -0
- data/test/stub/rails_apps/2.3/empty/db/.gitignore +0 -0
- data/test/stub/rails_apps/2.3/empty/public/stylesheets/.gitignore +0 -0
- data/test/stub/rails_apps/2.3/mycook/public/.htaccess +42 -0
- data/test/stub/rails_apps/2.3/mycook/public/uploads/.gitignore +0 -0
- data/test/stub/wsgi/tmp/.gitignore +0 -0
- data/test/valgrind-osx.supp +7 -0
- metadata +162 -8
- metadata.gz.asc +7 -7
- data/debian.template/locations.ini +0 -12
- data/debian.template/ruby-passenger-dev.install +0 -3
- data/debian.template/ruby-passenger-doc.install +0 -2
- data/debian.template/ruby-passenger.install +0 -11
- data/resources/templates/installer_common/freebsd9_broken_cxx_runtime.txt.erb +0 -19
data/passenger.gemspec
CHANGED
@@ -23,4 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
PhusionPassenger::Packaging::SUPER_USER_EXECUTABLES
|
24
24
|
s.description = "A modern web server and application server for Ruby, Python and Node.js, " +
|
25
25
|
"optimized for performance, low memory usage and ease of use."
|
26
|
+
|
27
|
+
if ENV['OFFICIAL_RELEASE']
|
28
|
+
s.extensions = ["helper-scripts/download_binaries/extconf.rb"]
|
29
|
+
end
|
26
30
|
end
|
data/resources/mime.types
CHANGED
@@ -0,0 +1,84 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIFODCCBCCgAwIBAgIRAMe+7E/+jr6mozf4AlIIrrMwDQYJKoZIhvcNAQEFBQAw
|
3
|
+
czELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
|
4
|
+
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxGTAXBgNV
|
5
|
+
BAMTEFBvc2l0aXZlU1NMIENBIDIwHhcNMTMwODA3MDAwMDAwWhcNMTgwODA2MjM1
|
6
|
+
OTU5WjBlMSEwHwYDVQQLExhEb21haW4gQ29udHJvbCBWYWxpZGF0ZWQxFDASBgNV
|
7
|
+
BAsTC1Bvc2l0aXZlU1NMMSowKAYDVQQDEyFvc3MtYmluYXJpZXMucGh1c2lvbnBh
|
8
|
+
c3Nlbmdlci5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVs5q/
|
9
|
+
Oqf/ccFRnky2/Po6MQ3OzVTiN+7AokVO0K360l/kVjCk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clpxCDezeWWkWaCUN/cALw3CknLa0Dhy2xSoRcRdKn23tNbE7qzN
|
72
|
+
E0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv77+ldU9U0
|
73
|
+
WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYD
|
74
|
+
VR0PBAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0
|
75
|
+
Jvf6xCZU7wO94CTLVBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRU
|
76
|
+
cnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsx
|
77
|
+
IjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3SCAQEwDQYJKoZIhvcN
|
78
|
+
AQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZlj7DYd7usQWxH
|
79
|
+
YINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
|
80
|
+
6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvC
|
81
|
+
Nr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX
|
82
|
+
c4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a
|
83
|
+
mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
|
84
|
+
-----END CERTIFICATE-----
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<yellow>No download tool found</yellow>
|
2
|
+
|
3
|
+
Phusion Passenger Standalone requires some binaries, such as the Nginx core. It
|
4
|
+
can download these binaries from the Phusion server (faster) or it can build
|
5
|
+
these from source (slower, requires additional dependencies). But to download
|
6
|
+
binaries, a download tool is required.
|
7
|
+
|
8
|
+
* <b>Option 1 (recommended):</b> If you want the binaries to be downloaded, please
|
9
|
+
press <b>Ctrl-C</b>, install a download tool as instructed below, and re-run
|
10
|
+
Phusion Passenger Standalone.
|
11
|
+
|
12
|
+
<% @runner.missing_dependencies.each do |dep| -%>
|
13
|
+
- <%= dep.install_instructions %>
|
14
|
+
<% end -%>
|
15
|
+
|
16
|
+
* <b>Option 2:</b> If you want the binaries to be compiled from source, press <b>Enter</b>.
|
17
|
+
|
18
|
+
Awaiting your choice...
|
data/rpm/README.rdoc
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
= Rubygem-passenger
|
2
|
+
|
3
|
+
This project is an attempt to build RPMs for {Phusion
|
4
|
+
Passenger}[http://modrails.org] for Fedora Core 13+, RHEL 5.5+, and CentOS
|
5
|
+
5.5+ (both via EPEL)
|
6
|
+
|
7
|
+
== Installation
|
8
|
+
|
9
|
+
The easiest way to install Passenger and keep it up to date is to install the
|
10
|
+
passenger-release package from the {main repository}[http://passenger.stealthymonkeys.com]:
|
11
|
+
|
12
|
+
[Fedora Core 14] <code>rpm -Uvh http://{http://passenger.stealthymonkeys.com/fedora/14/passenger-release.noarch.rpm}[link:http://passenger.stealthymonkeys.com/fedora/14/passenger-release.noarch.rpm]</code>
|
13
|
+
[Fedora Core 13] <code>rpm -Uvh http://{http://passenger.stealthymonkeys.com/fedora/13/passenger-release.noarch.rpm}[link:http://passenger.stealthymonkeys.com/fedora/13/passenger-release.noarch.rpm]</code>
|
14
|
+
[RHEL / CentOS / ScientificLinux 5.x + EPEL] <code>rpm -Uvh http://{http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm}[link:http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm]</code>
|
15
|
+
[RHEL / CentOS / ScientificLinux 6.x + EPEL] <code>rpm -Uvh http://{http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm}[link:http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm]</code>
|
16
|
+
|
17
|
+
*NOTE*: The RHEL-based distributions are built upon packages in {EPEL}[http://fedoraproject.org/wiki/EPEL], and require it to be installed.
|
18
|
+
|
19
|
+
The passenger-release package adds a new Yum repository to your configuration.
|
20
|
+
From here you can use the {yum}[http://prefetch.net/articles/yum.html] command
|
21
|
+
to install Passenger packages:
|
22
|
+
|
23
|
+
<code>yum install nginx-passenger</code>
|
24
|
+
|
25
|
+
<code>yum install mod_passenger</code>
|
26
|
+
|
27
|
+
<code>yum install passenger-standalone</code>
|
28
|
+
|
29
|
+
(You probably only need one of the commands above)
|
30
|
+
|
31
|
+
== Packages
|
32
|
+
|
33
|
+
=== Yum Package
|
34
|
+
|
35
|
+
[passenger-release] Yum configuration necessary to query the
|
36
|
+
{main repository}[http://passenger.stealthymonkeys.com]
|
37
|
+
(and eventually mirrors) for updates.
|
38
|
+
|
39
|
+
=== Main Packages
|
40
|
+
|
41
|
+
[rubygem-passenger] The base passenger Gem. Most of the package lives here.
|
42
|
+
|
43
|
+
[mod_passenger] The Apache webserver dynamically loadable module.
|
44
|
+
|
45
|
+
[nginx-passenger] A version of the nginx webserver with the passenger module
|
46
|
+
statically linked (nginx does not support dynamically
|
47
|
+
loadable modules)
|
48
|
+
|
49
|
+
[passenger-standalone] The passenger-standalone server. As of 3.0.0-11 this
|
50
|
+
package is correctly built and installed and is now
|
51
|
+
safe to use. This package was renamed from
|
52
|
+
rubygems-passenger-standalone in 3.0.1-4. No action is
|
53
|
+
required to upgrade from older packages via yum.
|
54
|
+
|
55
|
+
=== Supporting Packages
|
56
|
+
|
57
|
+
[rubygem-passenger-native] The compiled helper executables required by
|
58
|
+
mod_passenger and nginx-passenger
|
59
|
+
|
60
|
+
[rubygem-passenger-native-libs] The passenger_native_support.so shared library
|
61
|
+
compiled against a given ruby engine. This
|
62
|
+
package is separated to simplify building one
|
63
|
+
for a different ruby engine. Currently only
|
64
|
+
required by nginx-passenger.
|
65
|
+
|
66
|
+
[nginx-alternatives] A meta-package to put nginx under the alternatives system
|
67
|
+
so that multiple versions of the binary can co-exist.
|
68
|
+
This package is meant to be Obsoleted by a future nginx
|
69
|
+
package which should contain this functionality.
|
70
|
+
|
71
|
+
=== External Dependency Packages
|
72
|
+
|
73
|
+
[rubygem-daemon_controller] A gem for robust daemon managment. Required by
|
74
|
+
rubygem-passenger.
|
75
|
+
|
76
|
+
[rubygem-file-tail] Library to tail files in Ruby. Required by rubygem-passenger.
|
77
|
+
|
78
|
+
[rubygem-spruz] “Useful Stuff.” Required by rubygem-file-tail.
|
79
|
+
|
80
|
+
=== Other Packages
|
81
|
+
|
82
|
+
[rubygem-passenger-debuginfo] Standard debugger symbols for the above
|
83
|
+
packages. (Turned off in the 3.0.0 tree
|
84
|
+
due to debugging symbols containing
|
85
|
+
%builddir paths. This will be reinstaed in
|
86
|
+
a later release)
|
87
|
+
|
88
|
+
== Building Your Own Packages
|
89
|
+
|
90
|
+
There are 3 ways to build packages:
|
91
|
+
|
92
|
+
=== An Official Release via SRPM
|
93
|
+
|
94
|
+
This is the simplest option, and the only option that doesn't (likely) require
|
95
|
+
sudo access.
|
96
|
+
|
97
|
+
1. Download an SRPM from {the repository}[http://passenger.stealthymonkeys.com/SRPMS]
|
98
|
+
2. <code>rpmbuild --rebuild <SRPM file></code>
|
99
|
+
|
100
|
+
=== Testing Packages via Git
|
101
|
+
|
102
|
+
1. Clone this repository
|
103
|
+
2. <code>rake package:rpm</code>
|
104
|
+
|
105
|
+
=== A Testing {Yum}[http://fedoraproject.org/wiki/Tools/yum] Repository via Git
|
106
|
+
|
107
|
+
1. Clone this repository
|
108
|
+
2. <code>rake package:yum</code>
|
109
|
+
|
110
|
+
The first time the two rake tasks above are run they will probably need to sudo
|
111
|
+
in order to install and/or setup some of the dependencies. It will prompt you
|
112
|
+
with a list of commands it will run, and ask you to hit “return” to continue.
|
113
|
+
|
114
|
+
== Etc.
|
115
|
+
|
116
|
+
More to come!
|
117
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
LoadModule passenger_module modules/mod_passenger.so
|
2
|
+
<IfModule mod_passenger.c>
|
3
|
+
PassengerRoot %ROOT
|
4
|
+
PassengerRuby %RUBY
|
5
|
+
</IfModule>
|
6
|
+
|
7
|
+
# Deploying a Ruby on Rails application: an example
|
8
|
+
|
9
|
+
# Suppose you have a Rails application in /somewhere. Add a virtual host to
|
10
|
+
# your Apache configuration file and set its DocumentRoot to /somewhere/public:
|
11
|
+
#
|
12
|
+
# <VirtualHost *:80>
|
13
|
+
# ServerName www.yourhost.com
|
14
|
+
# DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
|
15
|
+
# <Directory /somewhere/public>
|
16
|
+
# AllowOverride all # <-- relax Apache security settings
|
17
|
+
# Options -MultiViews # <-- MultiViews must be turned off
|
18
|
+
# </Directory>
|
19
|
+
# </VirtualHost>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
passenger_root %ROOT;
|
2
|
+
passenger_ruby %RUBY;
|
3
|
+
|
4
|
+
# You'll need to integrate this portion into your own config
|
5
|
+
# server {
|
6
|
+
# listen 80;
|
7
|
+
# server_name www.yourhost.com;
|
8
|
+
# root /somewhere/public; # <--- be sure to point to 'public'!
|
9
|
+
# passenger_enabled on;
|
10
|
+
# }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
policy_module(rubygem_passenger, 1.0)
|
2
|
+
|
3
|
+
require {
|
4
|
+
type httpd_t, httpd_tmp_t;
|
5
|
+
};
|
6
|
+
|
7
|
+
|
8
|
+
# This should use interface macros
|
9
|
+
allow httpd_t httpd_tmp_t:sock_file { create write unlink getattr setattr };
|
10
|
+
allow httpd_t self:capability { fowner sys_resource fsetid };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<p id="tm">
|
2
|
+
<!--#if expr="${SERVER_NAME} = /stealthymonkeys.com/"-->
|
3
|
+
This repository is brought to you by <a
|
4
|
+
href="http://stealthymonkeys.com">Stealthy Monkeys Consulting</a>.
|
5
|
+
<!--#endif -->
|
6
|
+
|
7
|
+
“Phusion” and “Phusion Passenger” are
|
8
|
+
trademarks of Hongli Lai & Ninh Bui. All rights reserved.
|
9
|
+
</p>
|
10
|
+
</div>
|
11
|
+
</body>
|
12
|
+
</html>
|
@@ -0,0 +1,156 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
7
|
+
<title><!--#echo var="REQUEST_URI" --> — The Phusion Passenger RPM Repository</title>
|
8
|
+
<style type="text/css">
|
9
|
+
body {
|
10
|
+
font-family: baskerville, bodoni svtytwo os, bodoni, georgia, times new roman, serif;
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
a {
|
16
|
+
color: #717c8d;
|
17
|
+
}
|
18
|
+
a:visited {
|
19
|
+
color: #7687a2;
|
20
|
+
}
|
21
|
+
|
22
|
+
h1 {
|
23
|
+
margin-top: 0;
|
24
|
+
padding: 0.5em;
|
25
|
+
color: #fff;
|
26
|
+
background-color: #717c8d;
|
27
|
+
}
|
28
|
+
div#content {
|
29
|
+
padding: 0 1em;
|
30
|
+
}
|
31
|
+
pre,
|
32
|
+
.cmd,
|
33
|
+
.per-distro-cmds dd {
|
34
|
+
/* I think Courier New looks the best, but Andale Mono is preferable to the default */
|
35
|
+
font-family: Courier New, Andale Mono, Courier, monospace;
|
36
|
+
}
|
37
|
+
|
38
|
+
p#tm {
|
39
|
+
font-size: 80%;
|
40
|
+
text-align: right;
|
41
|
+
margin-bottom: 2em;
|
42
|
+
}
|
43
|
+
.per-distro-cmds dd,
|
44
|
+
.cmd {
|
45
|
+
display: block;
|
46
|
+
padding: 3px;
|
47
|
+
border: 1px solid #ccc;
|
48
|
+
background-color: #eee;
|
49
|
+
white-space: nowrap;
|
50
|
+
}
|
51
|
+
.per-distro-cmds dd {
|
52
|
+
margin-bottom: 0.5em;
|
53
|
+
}
|
54
|
+
|
55
|
+
dd.prop {
|
56
|
+
font-family: baskerville, bodoni svtytwo os, bodoni, georgia, times new roman, serif;
|
57
|
+
padding: 0;
|
58
|
+
border: 0;
|
59
|
+
background-color: transparent;
|
60
|
+
white-space: normal;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
.or {
|
66
|
+
padding: 0.5em;
|
67
|
+
font-size: 125%;
|
68
|
+
font-weight: bold;
|
69
|
+
text-align: center;
|
70
|
+
}
|
71
|
+
</style>
|
72
|
+
|
73
|
+
<!--#if expr="${SERVER_NAME} = /stealthymonkeys.com/"-->
|
74
|
+
<script type="text/javascript" src="http://use.typekit.com/keb1kea.js"></script>
|
75
|
+
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
76
|
+
<!--#endif -->
|
77
|
+
</head>
|
78
|
+
|
79
|
+
<body>
|
80
|
+
<h1>The Phusion Passenger RPM Repository</h1>
|
81
|
+
|
82
|
+
<div id="content">
|
83
|
+
<p>
|
84
|
+
Welcome to the repository. Here you’ll find RPM packages of <a
|
85
|
+
href="http://modrails.com/">Phusion Passenger</a> (aka mod_rails /
|
86
|
+
mod_rack) for <a href="http://fedoraproject.org/">Fedora</a> and <a
|
87
|
+
href="http://www.redhat.com/rhel/">RedHat Enterprise Linux</a> (and
|
88
|
+
derivatives like <a href="http://centos.org">CentOS</a> and <a
|
89
|
+
href="https://www.scientificlinux.org/">Scientific Linux</a>).
|
90
|
+
</p>
|
91
|
+
|
92
|
+
<!--#if expr="${REQUEST_URI} = '/'" -->
|
93
|
+
<p>
|
94
|
+
The easiest way to install Passenger and keep it up to date is to
|
95
|
+
install the passenger-release package:
|
96
|
+
</p>
|
97
|
+
|
98
|
+
<dl class="per-distro-cmds">
|
99
|
+
<dt><strong>Fedora Core 14</strong>:</dt>
|
100
|
+
<dd>rpm -Uvh <a
|
101
|
+
href="fedora/14/passenger-release.noarch.rpm">http://<!--#echo var="SERVER_NAME" -->/fedora/14/passenger-release.noarch.rpm</a></dd>
|
102
|
+
<dt><strong>Fedora Core 13</strong>:</dt>
|
103
|
+
<dd>rpm -Uvh <a
|
104
|
+
href="fedora/13/passenger-release.noarch.rpm">http://<!--#echo var="SERVER_NAME" -->/fedora/13/passenger-release.noarch.rpm</a></dd>
|
105
|
+
<dt><strong>RHEL 5 / CentOS 5 / ScientificLinux 5</strong>: (note, these packages depend on <a
|
106
|
+
href="http://fedoraproject.org/wiki/EPEL">EPEL</a>)</dt>
|
107
|
+
<dd>rpm -Uvh <a
|
108
|
+
href="rhel/5/passenger-release.noarch.rpm">http://<!--#echo var="SERVER_NAME" -->/rhel/5/passenger-release.noarch.rpm</a></dd>
|
109
|
+
<dt><strong>RHEL 6 / CentOS 6 / ScientificLinux 6</strong>: (note, these packages depend on <a
|
110
|
+
href="http://fedoraproject.org/wiki/EPEL">EPEL</a>)</dt>
|
111
|
+
<dd class="prop">
|
112
|
+
These packages will be available as soon as there is
|
113
|
+
a stable beta of either CentOS 6 or SL 6 to use as a build platform.
|
114
|
+
</dd>
|
115
|
+
</dl>
|
116
|
+
|
117
|
+
<p>
|
118
|
+
From there you can use <a href="http://prefetch.net/articles/yum.html">Yum</a> to install packages. For example:
|
119
|
+
</p>
|
120
|
+
|
121
|
+
<div>
|
122
|
+
<div class="cmd">yum install nginx-passenger</div>
|
123
|
+
<div class="or">or</div>
|
124
|
+
<div class="cmd">yum install mod_passenger</div>
|
125
|
+
<div class="or">or</div>
|
126
|
+
<div class="cmd">yum install passenger-standalone</div>
|
127
|
+
</div>
|
128
|
+
<!--#endif -->
|
129
|
+
|
130
|
+
<h2>Need More Information?</h2>
|
131
|
+
|
132
|
+
<!--#if expr="${REQUEST_URI} != '/'" -->
|
133
|
+
<p>
|
134
|
+
<a href="/">Installation instructions</a> can be found <a href="/">at
|
135
|
+
the root of this server</a>.
|
136
|
+
</p>
|
137
|
+
<!--#endif -->
|
138
|
+
|
139
|
+
<!--#if expr="${SERVER_NAME} = /stealthymonkeys.com/"-->
|
140
|
+
<!--#set var="repo" value="erikogan" -->
|
141
|
+
<!--#set var="prefix" value="my fork of the main" -->
|
142
|
+
<!--#else -->
|
143
|
+
<!--#set var="repo" value="FooBarWidget" -->
|
144
|
+
<!--#set var="prefix" value="the" -->
|
145
|
+
<!--#endif -->
|
146
|
+
|
147
|
+
<p>
|
148
|
+
The source files and documentation for these packages are maintained
|
149
|
+
in
|
150
|
+
<a href="http://github.com/<!--#echo var="repo"
|
151
|
+
-->/passenger/tree/master/rpm"><!--#echo var="prefix" --> GitHub
|
152
|
+
Passenger Repository</a>. Comments, questions, patches, and pull
|
153
|
+
requests are always welcome.
|
154
|
+
</p>
|
155
|
+
|
156
|
+
<h2><!--#echo var="REQUEST_URI" --></h2>
|