I have been using Vagrant as my development environment for the last couple weeks. It has been very helpful as I prefer to use Linux as my development environment and I can only use Windows at my workplace. With Vagrant, I can easily set up new Linux machine, install Vim plus all the plugins and completely separate development machine for each project.
Today, I was trying to use Zeus to speed up my Rspec test inside one of the Rails projects. I found this gem through a screencast by Ryan Bates about Fast Test.
Install Zeus is pretty easy, you just need to run this command on your terminal:
After that you just need to go to the directory of your Rails app and start the Zeus server using this command:
However, when I got an error when I was trying to ran that command. Here is the error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
You can see on the last line that it’s complaining something about .zeus.sock. The solution is pretty easy, you just need to add environment variable to your Vagrant machine. Use this command to add environment variable:
Also make sure you use the latest version of Zeus. Add this line inside your Gemfile:
Run ‘bundle’ to install the gem and update the version. You should be able to run ‘zeus start’ now and other Rails commands.