Hi all, I''ve developed mi RoR app in my windows with RadRails app, and affter that I''ve hosted it on my Linux server with FastCGI and i doesnt run. It show this message: Rails application failed to start properly , i''ve created a applicaction direct in my server and it runs perfectly. any idea?? Alfredo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alfredo Gama wrote:> Hi all, > > I''ve developed mi RoR app in my windows with RadRails app, and affter > that I''ve hosted it on my Linux server with FastCGI and i doesnt run. It > show this message: > > Rails application failed to start properly > > , i''ve created a applicaction direct in my server and it runs perfectly. > > any idea?? > > AlfredoCould be a line termination problem. Windows generally uses CR+LF, whereas *nix expects just LF. Files containing CRs (carriage return) will confuse most programs. Check the line termination options for your file transfer utility. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Im using FileZilla, it doesnt have this option that yo comment "Check the line termination options for your file transfer utility" Mick Sharpe wrote:> Alfredo Gama wrote: >> Hi all, >> >> I''ve developed mi RoR app in my windows with RadRails app, and affter >> that I''ve hosted it on my Linux server with FastCGI and i doesnt run. It >> show this message: >> >> Rails application failed to start properly >> >> , i''ve created a applicaction direct in my server and it runs perfectly. >> >> any idea?? >> >> Alfredo > > Could be a line termination problem. Windows generally uses CR+LF, > whereas *nix expects just LF. Files containing CRs (carriage return) > will confuse most programs. Check the line termination options for your > file transfer utility.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Another less obvious one is the fact that the first line in public/dispatch.fcgi contains the path to the Ruby interpreter on Windows and not on Linux. #!c:\ruby\bin\ruby.exe Should be #!/usr/bin/ruby or something similar. The easiest thing to do is to generate the Rails app on the host and then move your files over, making sure not to overwrite dispatch.fcgi. This often ensures the proper execute permissions are set as well. Or, develop on Linux :) On 1/4/07, Mick Sharpe <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Alfredo Gama wrote: > > Hi all, > > > > I''ve developed mi RoR app in my windows with RadRails app, and affter > > that I''ve hosted it on my Linux server with FastCGI and i doesnt run. It > > show this message: > > > > Rails application failed to start properly > > > > , i''ve created a applicaction direct in my server and it runs perfectly. > > > > any idea?? > > > > Alfredo > > Could be a line termination problem. Windows generally uses CR+LF, > whereas *nix expects just LF. Files containing CRs (carriage return) > will confuse most programs. Check the line termination options for your > file transfer utility. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try transferring text files in ASCII mode, since FileZilla may be transferring them in binary mode. Alternatively, add the relevant Rails file types to the list of ASCII file types recognised by FileZilla. Alfredo Gama wrote:> Im using FileZilla, it doesnt have this option that yo comment "Check > the line termination options for your file transfer utility" > > Mick Sharpe wrote: >> Alfredo Gama wrote: >>> Hi all, >>> >>> I''ve developed mi RoR app in my windows with RadRails app, and affter >>> that I''ve hosted it on my Linux server with FastCGI and i doesnt run. It >>> show this message: >>> >>> Rails application failed to start properly >>> >>> , i''ve created a applicaction direct in my server and it runs perfectly. >>> >>> any idea?? >>> >>> Alfredo >> >> Could be a line termination problem. Windows generally uses CR+LF, >> whereas *nix expects just LF. Files containing CRs (carriage return) >> will confuse most programs. Check the line termination options for your >> file transfer utility.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
=) Definitely develop on linux. What has been working perfectly for me is using Eclipse and/or RadRails on my Windows box, but store the project on my linux box and access it over a samba share. The only drawbacks to this are some permissions issues that occasionally come up and are easily fixed and that you can''t run any of the commands from within your IDE. But how often do you use those anyway? You can just execute them in a shell. Also, check permissions on dispatch.fcgi if you haven''t already. That shebang line error has gotten me several times before I went to my current setup. Also, it doesn''t really tell you what is going on. Brian Hogan wrote:> Another less obvious one is the fact that the first line in > public/dispatch.fcgi contains the path to the Ruby interpreter on > Windows and not on Linux. > > #!c:\ruby\bin\ruby.exe > > Should be > > #!/usr/bin/ruby > > or something similar. > > The easiest thing to do is to generate the Rails app on the host and > then move your files over, making sure not to overwrite > dispatch.fcgi. This often ensures the proper execute permissions are > set as well. > > Or, develop on Linux :) > > > On 1/4/07, *Mick Sharpe* <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > <mailto:rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> wrote: > > > Alfredo Gama wrote: > > Hi all, > > > > I''ve developed mi RoR app in my windows with RadRails app, and > affter > > that I''ve hosted it on my Linux server with FastCGI and i doesnt > run. It > > show this message: > > > > Rails application failed to start properly > > > > , i''ve created a applicaction direct in my server and it runs > perfectly. > > > > any idea?? > > > > Alfredo > > Could be a line termination problem. Windows generally uses CR+LF, > whereas *nix expects just LF. Files containing CRs (carriage return) > will confuse most programs. Check the line termination options for > your > file transfer utility. > > -- > Posted via http://www.ruby-forum.com/. > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Hogan wrote:> #!/usr/bin/ruby#!/usr/bin/env ruby> Or, develop on Linux :)Or dev on Linux with a Samba share to a mounted drive on Windows running RadRails But none of this would have fixed the sh-bang problem, which stands at the exact boundary of Rails''s domain. Running Webrick out of script/server will bypass the shebang on windows, so you can leave it configured for Linux. Can''t we all just ... get along?? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Again, thanks for ur help.... This code was generare by linux server: #!/usr/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log # and the GC period is nil (turned off). A reasonable number of requests # could range from 10-100 depending on the memory footprint of your app. # # Example: # # Default log path, normal GC behavior. # RailsFCGIHandler.process! # # # Default log path, 50 requests between GC. # RailsFCGIHandler.process! nil, 50 # # # Custom log path, normal GC behavior. # RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log'' # require File.dirname(__FILE__) + "/../config/environment" require ''fcgi_handler'' RailsFCGIHandler.process! AND this by the webbrick: #!c:/ruby/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log # and the GC period is nil (turned off). A reasonable number of requests # could range from 10-100 depending on the memory footprint of your app. # # Example: # # Default log path, normal GC behavior. # RailsFCGIHandler.process! # # # Default log path, 50 requests between GC. # RailsFCGIHandler.process! nil, 50 # # # Custom log path, normal GC behavior. # RailsFCGIHandler.process! ''/var/log/myapp_fcgi_crash.log'' # require File.dirname(__FILE__) + "/../config/environment" require ''fcgi_handler'' RailsFCGIHandler.process! i can''t see any difference, any idea??? Alfredo Phlip wrote:> Brian Hogan wrote: > > > #!/usr/bin/ruby > > #!/usr/bin/env ruby > > > Or, develop on Linux :) > > Or dev on Linux with a Samba share to a mounted drive on Windows > running RadRails > > But none of this would have fixed the sh-bang problem, which stands at > the exact boundary of Rails''s domain. Running Webrick out of > script/server will bypass the shebang on windows, so you can leave it > configured for Linux. > > Can''t we all just ... get along?? > > -- > Phlip > http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Alfredo_Peru wrote:> Hi Again, > thanks for ur help.... > > This code was generate by linux server: > #!/usr/bin/ruby> AND this by [windows]: > > #!c:/ruby/bin/ruby > #> i can''t see any difference, any idea???I see a difference. Same as what others were telling you. Change the first line. Use the one generated on linux. Neither webrick, nor mongrel, will care on yer windows machine, but you obviously need it for your linux environment. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---