Developed in window... hosting in a linux box

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

Alfredo G. 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.

Im using FileZilla, it doesnt have this option that yo comment “Check
the line termination options for your file transfer utility”

Mick S. wrote:

Alfredo G. 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.

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 G. wrote:

Im using FileZilla, it doesnt have this option that yo comment “Check
the line termination options for your file transfer utility”

Mick S. wrote:

Alfredo G. 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.

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 :slight_smile:

=) 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.