News for hackers. Stuff that matters.
Re:A Better Development Workflow with Vagrant by chewxy on Tuesday April 16, 2013 @06:03PM (#5561239)
Vagrant is the execution environment that you set up, share and whatnots. Your dev environment (IDE, text editor, etc) can still be in the original environment you are familiar with.

For example, just yesterday, a colleague wanted access to Fork the Cookbook's source (he was supposed to be helping out on frontend javascript). But because some bits of the code is written to be Linux specific, he needed a Linux box while working on a non-Linux box.

So I spent 30 mins creating a Vagrantfile, specifying the environment which Fork the Cookbook runs in. He takes it, runs the env, provisions with the existing provisioning script, and tadah, you get an environment where you get to run the code in.

Due to the synced directories, you can code in whatever env you are hosting on: it's like dropbox between your computer and the virtual box. Network pass throughs allow your host (i.e your physical machine) to use networks defined virtually in your virtual computer.

Great for sharing execution env and getting other people started. Not really necessary if you're working alone IMO

Re:A Better Development Workflow with Vagrant by bosie on Tuesday April 16, 2013 @07:28PM (#5561605)
> Vagrant is the execution environment that you set up, share and whatnots. Your dev environment (IDE, text editor, etc) can still be in the original environment you are familiar with.

Sorry if i have missed this but how do you execute/debug in the IDE through Vagrant? e.g. how would rubymine use vagrant's ruby binary?

Re:A Better Development Workflow with Vagrant by chewxy on Tuesday April 16, 2013 @07:32PM (#5561621)
I'm not sure about Rubymine since I'm more of a Python/Golang guy (also I use SublimeText). In Python, there is an IDE called PyCharm that has a remote intepreter function. I expect all good IDEs to have something like that too: remote intepreter/libraries/etc

EDIT: A quick Google yielded this: http://www.jetbrains.com/ruby/webhelp/configuring-remote-int...

Re:A Better Development Workflow with Vagrant by analog on Tuesday April 16, 2013 @07:43PM (#5561661)
Yup, this works with Rubymine and Vagrant. Set this up today for myself. Took a bit of fiddling to get it to work, Ruby 2.0 seems a bit flaky to debug, 1.9.3 works well.
Re:A Better Development Workflow with Vagrant by lojack on Tuesday April 16, 2013 @07:34PM (#5561632)
In the case of any debugging in your IDE, you'd want to use remote debugging (which, I believe, rubymine supports). Otherwise, I'd connect to the virtual machine via ssh and debug there.