Archive | January 2013

You are browsing the site archives by date.

Capistrano Deployment Using Local SSH key

Here is the steps to deploy the Application using SSH keys without Password $ ssh-copy-id user@remote-host Then you can login to Remote Host using  command without password as : $ ssh user@remote-host After this done open the deploy.rb of your Application file and add the following line in your deploy.rb set :user, ‘amit’ set :ssh_options, […]

Getting Invalid encoding UTF-8 and ASCII-8BIT error while parsing CSV. in Ruby

Once I parsing a CSV file. it will work for ruby1.8 but it give me encoding error while parsing same file using ruby1.9.   The following error is soled by just added this line to the string “Errored string”.force_encoding(“ISO-8859-1”).encode(“utf-8”, replace: nil) 🙂