Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

upgraded deploy hooks for bdsm

  • Loading branch information...
commit 1c847ec1075e8ed88b0a5eb19013b39caa8e284e 1 parent d8e81bb
@noctivityinc authored
Showing with 8 additions and 9 deletions.
  1. +6 −6 config/deploy/after_deploy
  2. +2 −3 config/deploy/before_deploy
View
12 config/deploy/after_deploy
@@ -4,20 +4,20 @@ source ~/.bashrc
RAILS_ENV="${RAILS_ENV:-development}"
-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
View
5 config/deploy/before_deploy
@@ -4,6 +4,5 @@ source ~/.bashrc
RAILS_ENV="${RAILS_ENV:-"development"}"
-cd $current_path
-$scripts_path/log "info" "Stopping unicorns..."
-bdsm unicorn stop
+enter $release_path
+
Please sign in to comment.
Something went wrong with that request. Please try again.