Live data from Hacker News

Help with Rails?

news.ycombinator.com

31–40 of 54 posts

Re: Help with Rails?

#31
Use node.js! It's as easy as npm install, npm start. Few other steps for the mongodb as well. None of this weird rvm crap. 90% of the time we're just putting text on the screen in various arrangements. Doesn't need to be rocket science.

Re: Help with Rails?

#34

Oh, boy. I've gotten our rails dev environment set up on a dozen different machines now and there's always a little problem here or there. One thing I can say right off the bat: I could never get it fully up and running on Windows, unfortunately. But we have had success on both OS X and Linux machines. The trick is to 1) install rbenv or rvm, 2) build the right version of ruby, 3) install the right gems, 4) make sure…

I know you're not on a mac, but I just re-setup a mac and went through this. So, for anyone wondering. Luckily with homebrew supporting rbenv now it's a lot easier to do.

Download the git installer and run it.

Install homebrew using their script.

brew install rbenv

brew install ruby-build

Once that is done you'll need to copy some stuff in your shell profile. It will tell you the two lines. Restart your shell.

Here's the first trick. You need openssl:

brew install open-ssl

(make sure "qmake" is now available or restart shell and see)

To see ruby versions: rbenv install -l

I installed 2.0.0-rc2: rbenv install 2.0.0-rc2

Almost there! Set it as your global ruby

rbenv global 2.0.0-rc2

Make sure this outputs the right ruby version now: ruby -v

Now install bundler and rails!

gem install bundler

gem install rails

I probably missed a step or two, but I just ran through that process and had a few bumps in the road as usual myself.

Re: Help with Rails?

#35
post #29

Coming from a Windows-only background you'll find it's probably a much smoother experience while developing on a Linux desktop or in Mac OS X. Installing a nice Ubuntu 13.04 desktop is not complex, there a video which explains installing Virtualbox and Ubuntu under ten minutes: http://www.youtube.com/watch?v=0WiiswmOH1Q ... note that a desktop is not required but given your background you would feel more comfortable…

Try Linux Mint instead...

Its Ubuntu under the hood, but has a windows like UI.

I almost gave up on Rails because I was using windows; life is easier as a rails developer with Linux or a Mac.

Re: Help with Rails?

#37
you could try vagrant, not sure if its the VDI that you were referring to, but I would say that setup generally seems smoother inside of linux vs. other environments (so it's worth it to deal with the extra complexity of a vm)

there are a bunch of github projects that you can get that has everything to setup a VDI- this one seems popular: https://github.com/amaia/rails-starter-box

there's also a railscast about it: http://railscasts.com/episodes/292-virtual-machines-with-vag...

Re: Help with Rails?

#38

Why do you need a Linux VDI? Test locally with the Rails server, then deploy to Heroku.

So.. You're half right IMHO! A linux desktop is entirely unnecessary. But so is Heroku. This "just deploy to Heroku" mentality is really starting to get on my nerves. Heroku is a great product that solves real problems for a certain class of project (and user). It is not, in any way, shape or form, the solution to every problem. Stop telling people it is.

[deleted]

Re: Help with Rails?

#39
post #26

I love Rails, but I think it might be better for you to go with a PHP framework. PHP is just dead simple to get running and deploy. I would suggest something like Yii or Codeigniter, both of which are somewhat similar to Rails in their architecture.

That's all well and good, unless you're actually wanting to learn Rails. :)

Re: Help with Rails?

#40

Why do you need a Linux VDI? Test locally with the Rails server, then deploy to Heroku.

So.. You're half right IMHO! A linux desktop is entirely unnecessary. But so is Heroku. This "just deploy to Heroku" mentality is really starting to get on my nerves. Heroku is a great product that solves real problems for a certain class of project (and user). It is not, in any way, shape or form, the solution to every problem. Stop telling people it is.

Yes, if you're runnign rails, you definitely shd learn the first 10 minutes of a wide open VPS config (passwd,ssh, fial2ban, iptables/ufw etc)... sometime But it doesn't have to be the first deploy
Post reply on HN