Installing on a Virtual Machine
The Rails team helpfully provides a virtual machine definition for Ruby on Rails development.[10] If you have both Git and Vagrant installed, you can be up and running with the three commands listed on that page (and repeated below).
| | $ git clone https://github.com/rails/rails-dev-box.git |
| | $ cd rails-dev-box |
| | $ vagrant up |
If you don’t have Git installed, you can download rails-dev-box as a zip file by clicking the link at the top right of the page.
Fedora users may need to install libvirt.[11]
The important thing to note is that the rails-dev-box directory will be shared with the virtual machine, where it’ll be mounted as /vagrant. Run the following commands to see this in action: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access