Archive January 2009

SSH port changed to 2222

Wednesday, January 21, 2009

De SSH port of ssh.railscluster.nl has been changed to 2222. This improves the security of all accounts. Deploying using Capistrano and logging in from the command line requires a minor change.

The following has to be added to config/deploy.rb for Capistrano:

ssh_options[:port] = 2222

Logging in from the command line can now be done using:

ssh account@ssh.railscluster.nl -p 2222

Please contact us if you require further support.

Cron support improved

Wednesday, January 14, 2009

The support for cron scripts has been improved. RailsCluster recommends to update all crontabs to use the new cluster_task wrapper.

The cluster_task wrapper ensures that cron scripts do not run twice and in parallel. This improves performance and avoids race conditions in your application.

The wrapper is to be placed before the actual cron script. Example:

PATH=/opt/ruby-enterprise/bin:/usr/local/bin:/usr/bin:/bin
0 * * * * /usr/local/bin/cluster_task rake cron:hourly

Please contact us if you require further support.

RailsCluster is the fastest and most reliable Ruby on Rails hosting platform in the Netherlands. Rack applications such as Merb are supported as well.

Please contact us for more information.