Skip to content

Commit

Permalink
Deploy: allow custom monit config location
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbeardsley committed Jul 24, 2012
1 parent f0c7a8c commit 388508f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
desc "Create symlinks in /etc/monit to the monit files in the deployed app"
task "symlink_monit_config" do
if deployment == 'production'
run "#{try_sudo :as => 'root'} ln -f -s #{current_path}/config/monit/* /etc/monit/"
run "#{try_sudo} ln -f -s #{current_path}/config/monit/* #{monit_config_location}"
else
logger.info "Skipping monit config because this is not the live production app"
end
Expand Down
1 change: 1 addition & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
set :use_sudo, true
set :normalize_asset_timestamps, false
set :copy_exclude, [".git"]
set :monit_config_location, "/etc/monit/"

default_run_options[:pty] = true

Expand Down

0 comments on commit 388508f

Please sign in to comment.