-
-
Save ckdake/aef17730ef8514799dc1 to your computer and use it in GitHub Desktop.
install ithought rails app in passenger with Chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "rails" | |
include_recipe "passenger_apache2" | |
package "libsqlite3-dev" | |
gem_package "sqlite3-ruby" | |
%w{config log system pids}.each do |dir| | |
directory "/var/www/ithoughtorg/shared/#{dir}" do | |
action :create | |
recursive true | |
end | |
end | |
cookbook_file "/var/www/ithoughtorg/shared/config/database.yml" do | |
source "database.yml" | |
mode "0644" | |
end | |
deploy "/var/www/ithoughtorg" do | |
repo "git://github.com/ckdake/ithought.org.git" | |
environment "RAILS_ENV" => "production" | |
end | |
web_app "ithoughtorg" do | |
docroot "/var/www/ithoughtorg/current/public" | |
server_name "ithoughtorg.#{node[:domain]}" | |
server_aliases [ "ithoughtorg", node[:hostname] ] | |
rails_env "production" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment