-
Install VirtualBox
-
Install vagrant
-
Install vagrant proxy plugin
vagrant plugin install vagrant-proxyconf
-
Install RubyMine (optional)
-
Clone this repo
git clone git@github.com:gsabev/ruby-vagrant-env.git
-
Vagrant Up
cd ruby-vagrant-env vagrant up
- Start RubyMine
- Open File->Settings
- Go to Build, Execution, Deployment -> Deployment and click the + button
- Chose SFTP for type of connection
- SFTP host: 127.0.0.1
- Port: 2222
- User/Password: vagrant/vagrant
- Check the remember password checkbox
- Click the Autodetect rootpath button
- Test the connection - should be green
- Click Apply
- Go to Languages and Frameworks -> Ruby SDK and Gems and click the + button
- Choose Deployment Configuration
- 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. - Click on the ssh connection url to verify it is working - should be green
- 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.