Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (44 sloc) 2.228 kb
c8fc1c1 Joshua Timberman cook-37, add passenger cookbook
jtimberman authored
1 = DESCRIPTION:
2
3 Installs passenger for Rails / Rack / Merb hosting.
4
5 = REQUIREMENTS:
6
7 == Platform:
8
9 Tested on Ubuntu 8.10. May work on other platforms, esp Ubuntu/Debian. May need work to function on CentOS/Fedora/RHEL.
10
11 == Cookbooks:
12
13 Opscode cookbooks, http://github.com/opscode/cookbooks/tree/master:
14
15 * ruby
16 * apache2 (web_app)
17 * rails
18
19 = ATTRIBUTES:
20
21 * passenger[:version] - Specify the version of passenger to install.
22 * passenger[:root_path] - The location of the passenger gem.
23 * passenger[:module_path] - The location of the compiled passenger apache module.
24 * passenger[:apache_load_path] - File to use for loading the passenger apache module.
25 * passenger[:apache_conf_path] - Additional passenger module configuration.
26
27 The last two are activated with apache_module.
28
29 = USAGE:
30
31 For example, to run a Rails application on passenger:
32
33 include_recipe "rails"
34 include_recipe "passenger"
35
36 web_app "myproj" do
37 docroot "/srv/myproj/public"
38 server_name "myproj.#{node[:domain]}"
39 server_aliases [ "myproj", node[:hostname] ]
1941e24 Joshua Timberman cook-37, need to specify rails_env in web_app.
jtimberman authored
40 rails_env "production"
c8fc1c1 Joshua Timberman cook-37, add passenger cookbook
jtimberman authored
41 end
42
0b9656f Joshua Timberman cook-67, set default template, add cookbook attribute/param.
jtimberman authored
43 A sample config template is provided, web_app.conf.erb. If this is suitable for your application, add 'cookbook "passenger"' to the define above to use that template. Otherwise, copy the template to the cookbook where you're using web_app, and modify as needed. The cookbook parameter is optional, if omitted it will search the cookbook where the define is used.
c8fc1c1 Joshua Timberman cook-37, add passenger cookbook
jtimberman authored
44
45 = LICENSE and AUTHOR:
46
47 Author:: Joshua Timberman (<joshua@opscode.com>)
48 Author:: Joshua Sierles (<joshua@37signals.com>)
49 Author:: Michael Hale (<mikehale@gmail.com>)
50
51 Copyright:: 2009, Opscode, Inc
52 Copyright:: 2009, 37signals
53 Coprighty:: 2009, Michael Hale
54
55 Licensed under the Apache License, Version 2.0 (the "License");
56 you may not use this file except in compliance with the License.
57 You may obtain a copy of the License at
58
59 http://www.apache.org/licenses/LICENSE-2.0
60
61 Unless required by applicable law or agreed to in writing, software
62 distributed under the License is distributed on an "AS IS" BASIS,
63 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64 See the License for the specific language governing permissions and
65 limitations under the License.
Something went wrong with that request. Please try again.