Installs passenger for Rails / Rack / Merb hosting.
Tested on Ubuntu 8.10. May work on other platforms, esp Ubuntu/Debian. May need work to function on CentOS/Fedora/RHEL.
Opscode cookbooks, github.com/opscode/cookbooks/tree/master:
-
ruby
-
apache2 (web_app)
-
rails
-
passenger - Specify the version of passenger to install.
-
passenger - The location of the passenger gem.
-
passenger - The location of the compiled passenger apache module.
-
passenger - File to use for loading the passenger apache module.
-
passenger - Additional passenger module configuration.
The last two are activated with apache_module.
For example, to run a Rails application on passenger:
include_recipe "rails" include_recipe "passenger" web_app "myproj" do docroot "/srv/myproj/public" server_name "myproj.#{node[:domain]}" server_aliases [ "myproj", node[:hostname] ] rails_env "production" end
Use the passenger_web_app.conf.erb template as an example to get started with your own vhost template for your application.
- Author
-
Joshua Timberman (<[email protected]>)
- Author
-
Joshua Sierles (<[email protected]>)
- Author
-
Michael Hale (<[email protected]>)
- Copyright
-
2009, Opscode, Inc
- Copyright
-
2009, 37signals
- Coprighty
-
2009, Michael Hale
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.