I am learning to develop Rails on Windows. As the Rails implementation is far from perfect on Windows, I use a virtual machine to launch the various Rails tools and servers, using Vagrant.
Each time I start my environment, I do the following :
- open 4 ConEmu Powershell tabs in my folder
- in the first tab,
subl .
, thenvagrant up
and wait for it to finish vagrant ssh
(it uses the ssh client from my "Git for Windows" installation, I guess it's OpenSSH) in the first 3 tabs thencd /vagrant
in each- in the first tab,
rake db:migrate
thenrake test:prepare
- in the first tab,
rails s
; in the second tab,guard -pc
- the fourth tab is just left alone, it's used for git commands
Can you envision a script, or a series of scripts, that can launch all these commands ? I can think of a convoluted way of how to open the 4 tabs and launch the vagrant ssh
(I didn't check if it worked yet), but I don't even know if it's possible to handle ssh sessions this way.