Skip to content

vnegrisolo/ruby-on-rails-dev-box

Repository files navigation

ruby-on-rails-dev-box

Build Status

💻 A Virtual Machine for a ruby on rails developer

What is in the box:

Requirements

Install

The install process is taking about: 50 min

  1. Download and Install Virtual Box - virtual machine provider
  2. Download and Install Vagrant - virtualization tool
  3. Download and Install Chef-dk - chef tools
  4. Create a projects folder (sync folder) using: mkdir ~/projects
  5. Download the a project zip file from github download zip button
  6. Install the ruby-on-rails-dev-box: vagrant up
  7. Connect to the virtual machine: vagrant ssh
  8. Copy the ssh key with pbcopy < ~/.ssh/id_rsa.pub and add it to the github settings
  9. Test github connection: ssh -T [email protected]

Vagrant Commands

vagrant <command>
Command Description
up starts the virtual machine
status check the status for the virtual machine
ssh connect to the virtual machine by ssh
halt stops the virtual machine
provision run the provision commands to the virtual machine, in this case the chef-solo
suspend save the current status of the virtual machine and hibernate it
resume resume the virtual machine from suspension
destroy destroy the virtual machine

Virtual Machine configuration

Shared Folders

the host computer and the virtual machine share a folder by nfs (more efficient) in both by the path: ~/projects/

Forward Ports

Port What is for
80 nginx http
443 nginx https
3000 rails server
5432 postgresql
6379 redis
9200 elastic search

References

About

💻 A Virtual Machine for a ruby on rails developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages