Rails on Windows is so slow (rails -v takes 4 seconds)

前端 未结 5 1606
旧巷少年郎
旧巷少年郎 2020-12-08 04:35

I\'m using rails Version 3.0.3 and ruby Version 1.9.2p136 (2010-12-15) on a Intel Core 2 Duo 2,6 Ghz with 4 GB Ram and Windows Vista Business SP2 with no other (heavy) appli

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 05:37

    It is faster to use Ruby inside an Ubuntu Virtual Machine than using it directly with Windows.

    A good option is to use Vagrant: You develop on your Windows IDE, and files are "shared" with the Ubuntu VM, you run "vagrant ssh", then run "rails server", or any other command you'd like to run. There are other benefits as well:

    • Your don't need to install RVM, or switch ruby versions, just use a VM for each project. VMs can be small, like 500MB of data, using up to 100MB of RAM, but YMMV
    • You don't need to worry about gem's compatibility with Windows

    Take a look: http://www.vagrantup.com/

提交回复
热议问题