Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.4 KB

Simple vagrant environment for ruby development

Prerequisutes

  1. Install VirtualBox

  2. Install vagrant

  3. Install vagrant proxy plugin

     vagrant plugin install vagrant-proxyconf
    
  4. Install RubyMine (optional)

Setup the environment

  1. Clone this repo

     git clone [email protected]:gsabev/ruby-vagrant-env.git
    
  2. Vagrant Up

     cd ruby-vagrant-env
     vagrant up
    

Setup RubyMine to work with our environment (optional)

  1. Start RubyMine
  2. Open File->Settings
  3. Go to Build, Execution, Deployment -> Deployment and click the + button
  4. Chose SFTP for type of connection
  5. SFTP host: 127.0.0.1
  6. Port: 2222
  7. User/Password: vagrant/vagrant
  8. Check the remember password checkbox
  9. Click the Autodetect rootpath button
  10. Test the connection - should be green
  11. Click Apply
  12. Go to Languages and Frameworks -> Ruby SDK and Gems and click the + button
  13. Choose Deployment Configuration
  14. Enter the correct path to the ruby interpreter. This can be found out by executing vagrant ssh -c "which ruby" from the root of this repo.
  15. Click on the ssh connection url to verify it is working - should be green
  16. Click OK

At this point RubyMine is configured to work with the provisioned vagrant environment. You may refer to this video that shows how to upload a project to vagrant and run it.