Using cap deploy:setup the deprec recipe.rb for mongrel_cluster runs as expected. This is fine (and indeed desired) for my production enviroment, but is it possible to cause mongrel_cluster/recipes.rb to NOT run when when I set a specific envrionment, e.g.
if ENV["STAGE"] == "production"
# service as normal
elsif ENV["STAGE"] == "staging"
# stop any of the deprec.mongrel.* namespace calls from running
# (deprec.rails hooks it up via before 'deploy:setup')
# is there an easy/sane way to overwrite or unload these?
end
I'm doing this because our production servers are currently a mongrel cluster, but the staging server is now unicorn, and I obviously don't need the mongrel_cluster recipe to run there (I've got unicorn recipes to run instead).