2 Replies - 957 Views - Last Post: 23 June 2012 - 05:29 AM

#1 LittleSoul  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 26-May 12

Server has a language version different than my own?

Posted 22 June 2012 - 08:29 AM

This might sound silly, but I google won't answer this one for me.

I have Ruby 1.9.3 installed, with rails 3.2.1

I checked my servers paths for ruby on rails, and they have ruby 1.8.7, and rails 3.2.3

Does this mean when I start coding that I need to make sure the versions match?

Do I need to downgrade in order for my application to work?

I haven't tested it out yet, but I figured i'd save myself some frustration if it's an easy question to answer.

Thanks a lot (:

Is This A Good Question/Topic? 0
  • +

Replies To: Server has a language version different than my own?

#2 e_i_pi  Icon User is offline

  • = -1
  • member icon

Reputation: 799
  • View blog
  • Posts: 1,681
  • Joined: 30-January 09

Re: Server has a language version different than my own?

Posted 22 June 2012 - 02:38 PM

It's extremely important to make sure your versions match between your Dev environment and your Prod environment (and any other environments, such as Staging/Test/UAT). You've got a couple of options:
  • Downgrade your Dev environment to match Prod. Could be easy, since you have full control over Dev, but also may involve uninstalling and reinstalling, as downgrading may not be available.
  • Upgrade your Prod environment. Could mean moving to a Managed VPS or Dedicated Hosting, which could be beyond the expense you want to go to.
  • Move to a host that has alterable versions of the software you use.

It's not so bad to develop on an environment that predates Prod, but if you're developing on say 5.8 and you're deploying to 5.2, then you can run into problems, as functions may not even exist. Even obselete functions are usually supported for several versions in the future, and deprecated functions usually hang around until the next major release.

Hope this helps.
Was This Post Helpful? 1
  • +
  • -

#3 LittleSoul  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 26-May 12

Re: Server has a language version different than my own?

Posted 23 June 2012 - 05:29 AM

Thanks a lot for the reply. I feared that would be the case.

Looks like i'll be downgrading. I'm not going to dish out the cash for a VPS or DS before my project even has a line of my own code.

Just when I got everything working too!

Thanks again.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1