desc “Push the latest revision into production”
task :deploy do
switchtower_invoke :deploy
end
desc “Rollback to the release before the current release in production”
task :rollback do
switchtower_invoke :rollback
end
desc “Describe the differences between HEAD and the last production
release”
task :diff_from_last_deploy do
switchtower_invoke :diff_from_last_deploy
end
desc “Enumerate all available deployment tasks”
task :show_deploy_tasks do
switchtower_invoke :show_tasks, :verbose => “”
end
desc “Execute a specific action using switchtower”
task :remote_exec do
unless ENV[‘ACTION’]
raise “Please specify an action (or comma separated list of actions)
via the ACTION environment variable”
end
actions = ENV[‘ACTION’].split(",")
switchtower_invoke(*actions)
end
Yup, good catch, Brad. That’s my fault. When I “fixed” the
switchtower_invoke task to be more configurable, I accidentally
deleted that line. I’ll fix that and package another release asap.
In the meantime, doing as Brad suggested below will correct the
problem for anyone else running into this.
Yup, good catch, Brad. That’s my fault. When I “fixed” the
switchtower_invoke task to be more configurable, I accidentally
deleted that line. I’ll fix that and package another release asap.
In the meantime, doing as Brad suggested below will correct the
problem for anyone else running into this.
Jamis
Jamis, FWIW, once I deployed with 1.0 everything seemed to go fine, but
when I loaded up my app in a browser it became evident that it wasn’t
following the symlinks. I just downgraded to 0.10 and did a deploy,
disable & enable web, and everything works perfectly. (I can see how ST
is going to be quite useful )
I don’t know enough about ST to be able to tell if this is something
with my setup, or something awry in 1.0, or a little of both. Thought I
would let you know tho…