Engineyard : Help : Debug deployment process

VPS/VPC deployment being at remote makes it cumbersome to know exactly what is happening under the hood during the deployment process. So, I think it would be great if we could know what is happening and what configuration the EY client sending to the VPS.

Some of the ideas we could implement to easy the debugging of deployment in Engineyard servers.

  • Make EY to echo the user friendly view of the config object inside deploy helper methods
  • Echo proper message after each action/event during deployment process

Make EY to echo the user friendly view of the config object inside deploy helper methods

# in /deploy/before_bundle.rb
# Display the Object 'config' for debugging
#
on_app_servers do
 require "#{config.release_path}/deploy/color_wrapper.rb"
 puts_c(SEPARATOR_SYMBOL * SEPARATOR_WIDTH, 'red')
 puts_c('Configurations: ', 'blue')
 config.inspect.split(', ').each do |key_value|
   puts_c(key_value, 'blue')
 end
 puts_c(SEPARATOR_SYMBOL * SEPARATOR_WIDTH, 'red')
end

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s