Starting point

B

BearItAll

Hello

I wrote in not long ago because I was struggling to move from a local
setup using Webrick to an ISP that hosts Rubyrails.

I am still struggling but I am not certain if the problem lies with me or
them. I would be happy for you to tell me I'm a complete dummy because
I've missed something, it's just right at the moment I don't know what is
going wrong.

I host with http://www.ocssolutions.com

They was a mixup with my domain name. it didn't get registered which may
of been why I couldn't get Rails working at first (I am guessing that
part). Even now a week later the email side of it doesn't work at all. But
hopefully they are sorting that out for me. They have been very quick with
requests for help so really I don't hold anything against them for this,
just a glitch in the system.

So now my domain name at least is working.

As for Rails, the only thing that works is the default index.html page.

For example, the famous 'cookbook' tutorial,

I use the host supplied script to generate a rails project,

ocs-install-rails

The cookbook example is at,

http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2

I get as far as the default page 'Congratulations your on rails' but get
no further in any tutorial that I have tried.

The next part is to add a controller,

script/generate controller MyTest

It generates the files.

Then I am told to browse to it, before adding anything else just to show
me that the display will be 'Unknown action' instead of 'Not found'.

I have tried,

http://mydomain/cookbook/My_Test

http://mydomain/cookbook/MyTest

http://mydomain/My_Test

http://mydomain/MyTest

All with and without a trailing /

(and a few more which are probably too silly to show you)

All give 'Not found' message, instead of the unknown action
message I should get.

If I carry on and put in the 'def index' part (just to see if it makes a
difference), it is the same.

This situation is true for every tutorial I have tried to do.

Now, the default index.html page ('Congratulations...') is just that, a
default html page and as far as I can see doesn't need anything to be
running in order to be displayed.

So I suspect that Rails isn't actually running at all, for my account
anyway. Does that seem reasonable from what you know.

A look at the running processes on their server does show dispatch.fcgi
processes running on other peoples accounts, but none on mine.

Attempting to run either of two versions of 'dispatch' they give,
directly from the command line always fails with '404 Page not found'.

So tell me, is it me or is it them.
 
J

Josh Charles

I get as far as the default page 'Congratulations your on rails' but get
no further in any tutorial that I have tried.

If you get this, then you are up and running on rails.
=20
The next part is to add a controller,
=20
script/generate controller MyTest
=20
It generates the files.

Are you doing all the development on the server? That might be the
cause of some of your problems. I don't know how often the fcgi
module will load up your new code. I use the same hosting company,
but haven't had any problems.

What I would suggest is developing on your local machine and then just
copying your code over to the server using sFTP, or your technology of
choice. If you're still have problems after that, perhaps it's
another issue.

Make sense?

Josh
 
B

BearItAll

If you get this, then you are up and running on rails.

No I'm afraid that isn't right. You can pull the index.html local have and
open it on a machine with no rails installed. It really is just a plain
html default page.
Are you doing all the development on the server? That might be the
cause of some of your problems. I don't know how often the fcgi
module will load up your new code. I use the same hosting company,
but haven't had any problems.

What I would suggest is developing on your local machine and then just
copying your code over to the server using sFTP, or your technology of
choice. If you're still have problems after that, perhaps it's
another issue.

Make sense?

Josh

As far as I can tell it can't be that I am working directly on the site,
the cookbook example has been there for a week now and fcgi hasn't stepped
into action.

When I work locally I just use vi for all my editing, I have tried other
editors but for the sake of speed of working I tend to slip back to vi. So
working in an ssh shell on the host is better for me.

Out of interest, if you run either of the dispatch.cgi scripts directly
from the command line, do you get a html page that says 'Routing error'?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top