Skip to content

Commit

Permalink
Updating deploy.example.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Winton Welsh committed Nov 12, 2008
1 parent 29db7bc commit 8d9b570
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions deploy.rb.example
Expand Up @@ -6,6 +6,11 @@ set :cookbook, {
:mongrel_port => 3000, # Your next app should be 3003
:ssh_port => 22, # Or any unused port above 1024 (best practice)

:app_helpers => true,
:attachment_fu => false,
:rails_widget => true,
:thinking_sphinx => false,

:production => {
:domain => 'myapp.com',
:other_domains => [ 'www.myapp.com' ],
Expand Down
16 changes: 8 additions & 8 deletions lib/cookbook.rb
Expand Up @@ -53,25 +53,25 @@

on :before, 'setup_stage', :except => [ :staging, :testing ] # Executed before every task
if platform == :rails
#after 'deploy:update_code', 'rails:setup_git' # Initialize submodules
after 'deploy:update_code', 'rails:config:to_app' # Copy shared config to app
#after 'deploy:update_code', 'rails:setup_git' # Initialize submodules
after 'deploy:update_code', 'rails:config:to_app' # Copy shared config to app
if app_helpers
after 'deploy:update_code', 'rails:config:app_helpers' # Set up app with app_helpers
after 'deploy:update_code', 'rails:config:app_helpers' # Set up app with app_helpers
end
if asset_packager
after 'deploy:update_code', 'rails:config:asset_packager' # Configure attachment_fu
after 'deploy:update_code', 'rails:config:asset_packager' # Configure asset_packager
end
if attachment_fu
after 'deploy:update_code', 'rails:config:attachment_fu' # Configure attachment_fu
after 'deploy:update_code', 'rails:config:attachment_fu' # Configure attachment_fu
end
if rails_widget
after 'deploy:update_code', 'rails:config:rails_widget' # Configure attachment_fu
after 'deploy:update_code', 'rails:config:rails_widget' # Configure rails_widget
end
if ultrasphinx
after 'deploy:update_code', 'rails:config:ultrasphinx' # Configure ultrasphinx
after 'deploy:update_code', 'rails:config:ultrasphinx' # Configure ultrasphinx
end
if thinking_sphinx
after 'deploy:update_code', 'rails:config:thinking_sphinx' # Configure thinking_sphinx
after 'deploy:update_code', 'rails:config:thinking_sphinx' # Configure thinking_sphinx
end
end

Expand Down

0 comments on commit 8d9b570

Please sign in to comment.