Created
January 11, 2011 18:17
-
-
Save knewter/774833 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--(root@jadams-desktop)-(68/pts/0)-(1157/11-Jan-11)-- | |
--($:/var/lib/chef/repo)(master)-- | |
$ git diff | |
diff --git a/cookbooks/potsdam/recipes/default.rb b/cookbooks/potsdam/recipes/default.rb | |
index 1e2b8ad..c65e852 100644 | |
--- a/cookbooks/potsdam/recipes/default.rb | |
+++ b/cookbooks/potsdam/recipes/default.rb | |
@@ -16,6 +16,9 @@ | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
+ | |
+include_recipe "passenger" | |
+ | |
rvm_rails_app "potsdam" do | |
action :deploy | |
user "potsdam" | |
@@ -26,3 +29,10 @@ rvm_rails_app "potsdam" do | |
web_stack "apache2_passenger" | |
# any other Chef::Resource::Deploy options | |
end | |
+ | |
+web_app "potsdam" do | |
+ docroot "/home/potsdam/current/public" | |
+ server_name "potsdam.#{node[:domain]}" | |
+ server_aliases [ "potsdam", node[:hostname] ] | |
+ rails_env "production" | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment