Creating a Ruby on Rails environment on Windows in a VM Vagrant drawer

Is Vagrant a good solution for building a Rails environment on Windows?

I have a powerful 64-bit Windows 8 desktop. I recently made a project with RoR and fell in love with it. As I found out, installing RoR on windows is just bleh; so I created a dual boot ubuntu. As a creative developer, it’s hard for me to get any β€œcreative” version in ubuntu due to the lack of my typical creative tools.

I read a little about a tool called Vagrant ; however, I'm still not sure if it meets my requirements: adobe suite, sublime text, git, rails, OS-friendly rails (mac? / ubuntu)

Typical responsibilities: edit the image in Photoshop (windows), drop it on the project objects in a virtual machine? Typical responsibilities: push / pull to git; ssh to VPS server?

Also, I heard that you can install mac os in a virtual machine, do you think this is a good option? (because I want to try the new OS)

+6
source share
2 answers

Installing osx in Vagrant is probably possible, but it will probably be quite complicated, and in fact it is not like a tramp.

As for your other questions, the tramp sounds like a perfect fit.

With Vagrant, you can start Ubuntu vm and configure rail settings. Then you can simply forward the port to your local computer in vm and download the rails site as if it were running locally on your Windows PC. Fast google gets this stray box that looks like it can work for you - https://github.com/amaia/rails-starter-box

To work with the site, you can simply share the folder between vm and your local machine, which will allow you to edit images and code using your window applications (Photoshop, sublime), so you actually do not need to install them in ubuntu vm at all, and can pretty much work as usual.

Git is the same ... I prefer SSH to stray boxing and use git on the command line in ubuntu, but you can just as easily use gitbash or tortoisegit from windows in the repo folder. works just as well.

+6
source

A good alternative is https://github.com/fgrehm/ventriloquist

"Ventriloquist combines Vagrant and Docker to enable developers to easily configure portable and one-time development virtual machines. It lowers the entry barrier to creating a smarter work environment without having to learn tools like Puppet or Chef."

+1
source

Source: https://habr.com/ru/post/947090/


All Articles