New Rails app is not working... I am missing something

My email server is down, so by the time you get this, I’m sure you’ll
have
the answer. If not…

If you’re using webrick, the url will be /admin, not /asset/admin,
unless
you’ve put something in your routes.rb file to make recognize
/asset/admin.

Dave

So here I have found the weak spot… If it doesn’t work under Apache,
then Rails becomes useless to me very quickly.

There is clearly some simple setting that needs to be changed, and I
don’t know what it is… I have completely disassembled my httpd.conf
file, and the .htaccess file in the apps public directory. It looks
fine to me, but then…

Something has this not working, and I don’t know exactly what I need to
be looking for.

Nitefall wrote:

OK

I deleted the application directory (/path/to/asset_track/)

Re-created it (rails asset_track)

set …/config/databse.yml correctly

Built the Admin Controller (ruby script/generate scaffold Asset Admin)

Started WebBrick and it seems to be working.

But it still is not working in Apache.

How can I get this working in Apache?

If it’s not working in Apache but works in Webrick then clearly you
are having problem with rights. Check what user the apache server is
running on. It’s propably apache or nobody. Then set the user of your
app to be that.

It could also be that your public/.htaccess is wrong. Make sure it
points to dispatch.fcgi instead of .cgi.

On 5/14/06, Nitefall [email protected] wrote:

Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Jón Borgþórsson wrote:

If it’s not working in Apache but works in Webrick then clearly you
are having problem with rights. Check what user the apache server is
running on. It’s propably apache or nobody. Then set the user of your
app to be that.

It could also be that your public/.htaccess is wrong. Make sure it
points to dispatch.fcgi instead of .cgi.

It was the permissions :slight_smile:

The thing I don’t understand is this.

The files for the tutorial application I built with the help of a book
were owned by webmaster:www

I set the file ownership and permissions for my new app identically to
the tutorial’s ownership and permissions. Going through each directory
one at a time… making sure all was the same.

My app didn’t run.

But a simple chmod -R www:www ./myapp/ made my applicaiton work.

There must be a single thing that I missed in the tutorial app.

Well… All is well now.

Thanks!!!