Skip to content
Browse files

upgraded deploy hooks for bdsm

  • Loading branch information...
1 parent d8e81bb commit 1c847ec1075e8ed88b0a5eb19013b39caa8e284e @noctivityinc committed
Showing with 8 additions and 9 deletions.
  1. +6 −6 config/deploy/after_deploy
  2. +2 −3 config/deploy/before_deploy
12 config/deploy/after_deploy
@@ -4,20 +4,20 @@ source ~/.bashrc
-cd $current_path
+enter $release_path
-$scripts_path/log "info" "Run bundler..."
+info "Run bundler..."
bundle install
-$scripts_path/log "info" "Running migrations..."
+info "Running migrations..."
rake db:migrate --trace >> ~/shared/log/migrate.log 2>&1
-$scripts_path/log "info" "Updating cron via whenever..."
+info "Updating cron via whenever..."
whenever -w
mkdir -p $current_path/tmp/pids
-$scripts_path/log "info" "Starting unicorns..."
-bdsm unicorn start
+info "Restarting unicorns..."
+bdsm unicorn restart
rake hoptoad:deploy TO=$environment
5 config/deploy/before_deploy
@@ -4,6 +4,5 @@ source ~/.bashrc
-cd $current_path
-$scripts_path/log "info" "Stopping unicorns..."
-bdsm unicorn stop
+enter $release_path

0 comments on commit 1c847ec

Please sign in to comment.
Something went wrong with that request. Please try again.