I tend to do most of my development on my Powerbook, but deploy to a poor Windows server. My single largest annoyance is dealing with the shebang lines at the top of various scripts, mostly dispatch.fcgi Is there a good way of managing this? How do other people handle it? I haven''t delved very deeply in subversion, but is this where a hook might be used? Or is this something that Switchtower might be able to handle? Anyways it seems like such a little problem, but it tends catch me all the time ;) Oh: #!c:/ruby/bin/ruby #!/opt/local/bin/ruby How I hate thee... .adam sanderson _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I can''t help with the Windoze issue, but here''s a handy idiom for Unixish systems: #!/usr/bin/env ruby This will find a copy of Ruby, based on your $PATH setting. -r -- email: rdm-go8te9J4rpw@public.gmane.org; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
On 9/22/05, Adam Sanderson <netghost-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tend to do most of my development on my Powerbook, but deploy to a poor > Windows server. My single largest annoyance is dealing with the shebang > lines at the top of various scripts, mostly dispatch.fcgi > > Is there a good way of managing this? How do other people handle it? I > haven''t delved very deeply in subversion, but is this where a hook might be > used? Or is this something that Switchtower might be able to handle? > > Anyways it seems like such a little problem, but it tends catch me all the > time ;) > > Oh: > #!c:/ruby/bin/ruby > #!/opt/local/bin/ruby > How I hate thee... > > .adam sandersonI don''t do anything fancy really. I have to deal with a mac for development, my boss''s dell laptop, and textdrive for hosting. I''m used to the shebang being incorrect, so I type ''ruby script/*'' all the time. I keep a copy of dispatch.fcgi in my production shared directory and use ST to copy it there when I deploy. I do the same for other files, such as database.yml. -- rick http://techno-weenie.net
Adam Sanderson wrote:> I tend to do most of my development on my Powerbook, but deploy to a > poor Windows server. My single largest annoyance is dealing with the > shebang lines at the top of various scripts, mostly dispatch.fcgi > > Is there a good way of managing this? How do other people handle it? I > haven''t delved very deeply in subversion, but is this where a hook might > be used? Or is this something that Switchtower might be able to handle? > > Anyways it seems like such a little problem, but it tends catch me all > the time ;) > > Oh: > #!c:/ruby/bin/ruby > #!/opt/local/bin/rubyYou could do it with a sed one-liner: sed -i "s/$MY_RUBY/$THEIR_RUBY/" `find $RAILS_EXPORT_ROOT` At least, I think that''s the syntax. Worth investigating, anyway. -- Alex