Skip to content

Instantly share code, notes, and snippets.

@jqr
Created April 8, 2009 17:42
Show Gist options
  • Save jqr/91881 to your computer and use it in GitHub Desktop.
Save jqr/91881 to your computer and use it in GitHub Desktop.
before "deploy:symlink", "deploy:check_app_dependencies"
namespace :deploy do
desc "Checks for required dependencies by starting the application"
task :check_app_dependencies, :roles => :app do
app_env = fetch(:rails_env, "production")
run "cd #{release_path}; RAILS_ENV=#{app_env} ./script/runner ''"
# TODO: anything required for rollback?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment