Tuesday, September 23, 2014

Install Ruby and Capistrano without Rails

Below are the steps which you can follow to use capistrano deployment script to deploy any project
 
1. Install Curl
2. Install RVM by below curl (Ref: http://rvm.io/rvm/install)
   \curl -sSL https://get.rvm.io | bash -s stable   
3. source ~/.rvm/scripts/rvm
4. type rvm | head -n 1
5. rvm install 2.0.0
6. ruby -v
7. gem install capistrano (Ref: http://ryanflorence.com/deploying-with-capistrano-without-rails/)
8. gem install railsless-deploy

Friday, August 29, 2014

Gemset '' does not exist, 'rvm ruby-1.9.3-p547 do rvm gemset create ' first, or append '--create'.

I get one error while try to install ruby 1.9.3 with rvm 1.25.28

rvm install 1.9.3

Error: 
There was an error while trying to resolve rubygems version for 'latest'.
Halting the installation

rvm use 1.9.3

Error:
Gemset '' does not exist, 'rvm ruby-1.9.3-p547 do rvm gemset create ' first, or append '--create'.


To solve the above error
rvm use 1.9.3@newgemset --create --default

Hope this helps who install ruby 1.9.3 with rvm 1.25.28

Friday, June 28, 2013

Rails 4 Released !!!!!

Hey guys,

Rails 4 final version is released on 25th june 2013

ITs pretty good :)

http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/

Rails team recommend to use rails 4 with Ruby 2.0.0

Thanks to Rails core team again

Monday, December 3, 2012

uninitialized constant Rake::DSL with rails 3.2.x

If you are using rake 0.8.7 and rails 3.2.x then you can do following as Rake::DSL is required in railties

So to solve this

module Rake
  module DSL
  end
end

Friday, August 31, 2012

{ [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

You may get this error when you send request to any URL from nodejs,
Simply you can solve this error by doing following

1. Find out IP of url (which you try to access from your code)
2. Add that url and domain in your /etc/hosts as below
     111.111.111.111    example.com


Cheers !!

Thursday, August 30, 2012

Upgrade NodeJS

Install node module 'n', this module helps nodejs version managements
Do as below

1. $npm install n -g
2. n 0.8.8

Its really awasome !!!

Contact Me for any help regarding rails/nodejs/php/mysql

Name

Email *

Message *