<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Chris Pratt - Latest Comments in Ruby on Rails Development in Windows via Cygwin</title><link>http://chrisdpratt.disqus.com/</link><description></description><atom:link href="https://chrisdpratt.disqus.com/ruby_on_rails_development_in_windows_via_cygwin/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 02 Sep 2010 13:57:56 -0000</lastBuildDate><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-74307651</link><description>&lt;p&gt;thank you .....&lt;br&gt;really helpful article&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">To Vivekanand3435</dc:creator><pubDate>Thu, 02 Sep 2010 13:57:56 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-12735251</link><description>&lt;p&gt;Just a suggestion: keep rails and everything associated in a Linux vm, with the code in a shared directory (not samba, but a vmware share). This way you can have your editor and other development tools in the host os, and when you are not developing you can just suspend the vm and it is all shut down and out of sight. As a plus you get the bonus of vm snapshots which are really useful for testing &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jaidevs</dc:creator><pubDate>Thu, 16 Jul 2009 05:42:25 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-7086990</link><description>&lt;p&gt;Thanks for the great tutorial.  Is it possible to run the tail command with this installation. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Tue, 10 Mar 2009 19:34:35 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969669</link><description>&lt;p&gt;Update: jEdit is *incredible* for Rails development if you add the Ruby syntax modules. I'm using it on Mac OS X; I've had good luck with it on Linux as well, though I've never used it for Rails there.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marnen Laibow-Koser</dc:creator><pubDate>Thu, 18 Sep 2008 17:02:57 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969667</link><description>&lt;p&gt;FWIW, Linux does have good text editors available besides [emacs|vi]. My favorite is probably Kate; gedit is also good.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marnen Laibow-Koser</dc:creator><pubDate>Sun, 27 Jul 2008 02:20:32 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969668</link><description>&lt;p&gt;@Antun:&lt;br&gt;I ran into the same problem. Setting your database to localhost fixes the problem and as far as I know, there's no difference between the two.&lt;/p&gt;&lt;p&gt;*thinks*&lt;/p&gt;&lt;p&gt;Unless there is, and I just broke something vital. Oh well.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Erik Burger</dc:creator><pubDate>Mon, 14 Jul 2008 09:40:22 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969666</link><description>&lt;p&gt;I'm having problems getting the rake command to run with Cygwin + Rails. I've changed all references of localhost to ‘127.0.0.1′, which allows me to run the rails command, and do things like generate models, controllers and a scaffold. However, when I run:&lt;/p&gt;&lt;p&gt;&amp;gt; rake db:drop:all&lt;/p&gt;&lt;p&gt;I get the following error:&lt;/p&gt;&lt;p&gt;&amp;gt; "This task only drops local databases. mp is on a remote host."&lt;br&gt;&amp;gt; rake aborted!&lt;/p&gt;&lt;p&gt;It seems that by setting my database to 127.0.0.1, rake can't modify my database.&lt;/p&gt;&lt;p&gt;Has anyone else run into this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Antun Karlovac</dc:creator><pubDate>Thu, 17 Apr 2008 13:51:13 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969665</link><description>&lt;p&gt;Ibrahim: Oh, and I forgot to mention another reason. e Text Editor uses Cygwin, already, for some of its more advanced features. There's some things you can't do with e unless your app is in Cygwin as well: running formatted specs from within e, for example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Sat, 06 Oct 2007 12:23:00 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969664</link><description>&lt;p&gt;Ibrahim: the main reason to use Cygwin is for the issues discussed in my previous post: &lt;a href="http://chrisdpratt.com/2007/09/04/rails-rspec-autotest-redgreen-and-snarl-reasons-i-dont-like-windows/" rel="nofollow noopener" target="_blank" title="http://chrisdpratt.com/2007/09/04/rails-rspec-autotest-redgreen-and-snarl-reasons-i-dont-like-windows/"&gt;Rails, RSpec, Autotest, Redgreen and Snarl: Reasons I Don't Like Windows&lt;/a&gt;. If you were able to achieve a Rails development environment, sans Cygwin, where all this works, I'd love to know more about it. Please post back the versions of the various things you're using (Windows, Rails, Autotest, etc), and any steps you might have taken that diverge from just a straight, by-the-book install.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Sat, 06 Oct 2007 12:19:40 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969663</link><description>&lt;p&gt;Hi Chris, I m using Rails on Windows, I use ferret, mongrel, zentest...etc and I wasn't forced to install Cygwin for anything needed by Rails development environment. Is Cygwin really required for anything you use in your Rails environment.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ibrahimahmed</dc:creator><pubDate>Sat, 06 Oct 2007 00:05:15 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969662</link><description>&lt;p&gt;Chris: Interesting... At what point do things start to go awry for you?&lt;/p&gt;&lt;p&gt;I just tried to install the RSpec plugins on an edge rails and everything was fine until I tried to generate the default RSpec files and folders (ruby script/generate rspec)... It errors out every time. I even tried the trunk version or RSpec in addition to the current release, with the same results.&lt;/p&gt;&lt;p&gt;Just to be thorough, I tried generating rspec before freezing edge, but whatever the issue is seems to affect all rspec generators, as I couldn't get the rspec_model or rspec_controller generators to work in edge either. Now, it's possible to manually create your specs without the generators, so I went ahead and tried autotest on some existing specs, which failed as well.&lt;/p&gt;&lt;p&gt;It would appear that RSpec is completely broken in Edge Rails, at least on Windows. However, if I had to guess, I would say its actually that edge rails runs from the plugin directory that is giving RSpec problems, rather than some new change in Rails itself.&lt;/p&gt;&lt;p&gt;I might end up adding this tracker, but I'm hesitant since it's asking for a change to support something that is itself experimental in nature. Actually, more likely than not, I'll simply mention it on the RSpec mailing list, and see what people come up with.&lt;/p&gt;&lt;p&gt;Thanks for noticing this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Thu, 27 Sep 2007 20:05:34 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969661</link><description>&lt;p&gt;Thanks, I'll be interested to see if it is an actual problem or just somethin silly i am doing&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Finch</dc:creator><pubDate>Thu, 27 Sep 2007 08:51:17 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969660</link><description>&lt;p&gt;Chris: Hmm... I don't think I actually have tried this setup with edge rails, but that's interesting that you've experience problems with that. I'll go back and try this setup again with edge rails, and see if I get a similar result. I'll post anything I find here.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Thu, 27 Sep 2007 07:48:28 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969659</link><description>&lt;p&gt;Chris,&lt;br&gt;I use a mac at home but unfortunately have to use Windows XP at work. I stumbled across this when I was trying to recreate my nice mac development environment on Windows.&lt;br&gt;I use cygwin and e-text-editor and I tried hard to get rspec working with autotest and snarl. I have come to rest at the solution you provide above - without snarl but hey coloured autotests.&lt;br&gt;However, when using edge rails, I have found the above does not work - do you have a similar experience?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Finch</dc:creator><pubDate>Thu, 27 Sep 2007 07:43:06 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969658</link><description>&lt;p&gt;It's a Windows issue in general. Everything in Rails runs slow on Windows (rake, generate, etc). RSpec in particular has a "spec server" which will load your environment in advance and keep it running so that this doesn't have to be done each time you run a spec. Unfortunately, I have not been able to get it to work along side autotest, at least under Windows.&lt;/p&gt;&lt;p&gt;However, I am experiencing the same slowdown, so it's only a matter of time before I finally get fed up enough to thoroughly investigate the matter. If you come across something first, though, send it my way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Tue, 18 Sep 2007 09:23:50 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969657</link><description>&lt;p&gt;Chris, I ended up installing mysql :)&lt;br&gt;Now it's all working, but I find autotest running incredibly slowly? Do you have the same problem, or any fixes for it?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Knight</dc:creator><pubDate>Tue, 18 Sep 2007 04:41:34 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969656</link><description>&lt;p&gt;Glad it helped you out. Good luck with that ;).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Pratt</dc:creator><pubDate>Mon, 17 Sep 2007 22:26:03 -0000</pubDate></item><item><title>Re: Ruby on Rails Development in Windows via Cygwin</title><link>http://www.chrisdpratt.com/2007/09/17/ruby-on-rails-development-in-windows-via-cygwin/#comment-4969655</link><description>&lt;p&gt;Woah, how timely is this? RailsConfEurope had a session on BDD and rspec this morning, and I've spent the evening trying to do exactly what you've outlined here.&lt;/p&gt;&lt;p&gt;I've made it harder for myself by using sqlite3 rather than mysql, which is complaining about a segmentation fault. It's going to be a long night!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Knight</dc:creator><pubDate>Mon, 17 Sep 2007 19:31:26 -0000</pubDate></item></channel></rss>