If you are on OSX you can learn Capistrano to talk. And when you do, he can tell you when your deploy is done.

Just add the following task to your deploy.rb

1
2
3
task :do_speak do
  system("/usr/bin/say -r 250 -v Zarvox 'Sir, your #{rails_env} deploy is done'")
end

And hook it up to run after deploy

1
after 'deploy', 'do_speak'

Now use your imagination, and add more words to Capistrano’s vocabulary :)

If you are using Linux or windows you can use espeak to get the same results

Cheers!

Posted in Programming, Rails, Ruby at May 19th, 2012. No Comments
Tagged with , , . Written by:

Note to self.

When deploying my RubyOnRails applications with Capistrano and I get errors like this one

1
2
3
4
5
servers: ["app.myserver.com"]
[app.myserver.com] executing command
** [out :: app.myserver.com] sh: bundle: command not found
command finished in 31ms
servers: ["app.myserver.com"]    [app.myserver.com] executing command ** [out :: app.myserver.com] sh: bundle: command not found    command finished in 31ms

Capistrano executes the commands in a very basic shell so the $PATH environment are not the same as when you login through SSH.

One way to solve this is by setting PermitUserEnvironment to yes in /etc/sshd_config and then add the correct PATH to ~/.ssh/environment

I just found another way that was much easier :-)

In you config/deploy.rb add the following snippet

1
2
3
set :default_environment, {
  'PATH' => "/opt/ruby-enterprise/bin/:$PATH"
}

Thats it!

Cheers!

Posted in Programming, Rails, Ruby at June 1st, 2011. 4 Comments
Tagged with , , . Written by:

Just before christmas I worked with one of our customers new server cluster or cloud if you may.
This cluster has production nodes and staging nodes and this post is about how to get capistrano to play nice with both production and the staging environment.
Read More…

Posted in Hosting, Programming, Rails, Ruby at January 6th, 2009. 8 Comments
Tagged with , , , . Written by:

Just released a new version of capistrano_colors. This is a total rewrite from the last version. This post show some of the bigger changes.
Read More…

Posted in gems, Programming, Projects, Rails, Ruby at January 4th, 2009. No Comments
Tagged with , , , , , . Written by:

I got so tired of all the messy capistrano output so today I released my first public gem.

The name of the gem is capistrano_colors and the aim of the gem is to put some nice and shiny colors on capistrano output. The gem has only been tested with rails but should work wherever capistrano works.

Keep on reading to see some screenshots!
Read More…

Posted in gems, Programming, Projects, Ruby at December 21st, 2008. 6 Comments
Tagged with , , , , . Written by:

It's past my bedtime is using WP-Gravatar