It is so rough on the eyes to read the output of a deploy, is there
any way to at least get quoted and bracketed text to be colorized?
-patrick
--
* You received this message because you are subscribed to the Google Groups
Capistrano group.
* To post to this group, send email to
Hi everyone,
I am just wondering what the proper way to setup an on_rollback method
is?
As of right now, my deploy.rb file does this:
before deploy, deploy:web:disable
after deploy, deploy:web:enable
disable_path = #{shared_path}/system/maintenance
namespace :deploy do
namespace :web do
Sorry patrik, there are some ways (wrapping the script) - but it's not a
high priority. If you wanna request it via the Github issue tracker, someone
may be inspired to work on it with you.
- Lee
--
* You received this message because you are subscribed to the Google Groups
Capistrano group.
*
Patrik,
In your deploy, I'd recommend a run() which is always truthy (that is, if
it's optional), the easiest way would be:
task :remove_disabling_file, :roles = [:app] do
file_name = 'deply-failed.html'
run(if [ -e #{file_name} ] then; unlink #{file_name}; end )
end
(completely un-tested,
Finally, regarding on_rollback, take a look in
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy.rbat
how this can be used, there's a few examples in there, simply have a
skim
through the file.
I might also draw your attention to the tasks:
Have you seen the capistrano_colors gem?
https://github.com/stjernstrom/capistrano_colors
It might be enough for what you want.
-Rob
On Sep 16, 2011 2:39 AM, Lee Hambley lee.hamb...@gmail.com wrote:
Sorry patrik, there are some ways (wrapping the script) - but it's not a
high priority. If you
I would refactor this to never use mv; only use cp or better use a symlink;
Check in an index.enabled.html and a index.disabled.html
Then your enable disable tasks just need to rewrite the symlink of index.html
to the matching state; you can even check in the symlink to your preferred
state.