new rails installtion not showing image

Hi, i've install ruby and rails on ubuntu 10.04

install passenger to run app on apache

install new app with $rails new myapp

when i view the rails default page it shows the "Welcome aboard"page but there's no rails logo appearing. Also when i click on "About your application’s environment" link it shows Not Found error.

What i'm missing

Thanks

3 Replies

i've uploaded my develop app now its showing the public dir files.

is there any apache or pessanger settings that i've missed.

my dir structure is /srv/www/examp.com/appdir/

and my apache file is like this

ServerAdmin webmaster@examp.com

ServerName examp.com

ServerAlias www.examp.com

DocumentRoot /srv/www/examp.com/appdir/public

Options +Indexes +FollowSymLinks +MultiViews

Order allow,deny

Allow from all

Hi,

I have spent the last week on installing rails and have an idea about what is going on.

Click on the stats link in that page that is displayed and check it is connecting to the database. If it cannot connect to the database you will get no pictures.

There has been MUCH wailing and gnashing of teeth in my house over the last week, during which time I have found a LOT of installation problems with rails. It's a nightmare. Even using RVM to install it, they leave steps out that mean it won't work with a VPS. Also, installing with app-get is a very bad idea.

I am using postgres as a database.

Oh, it will use it's own web server by default: Webbrick, listening on port 3000 on a standard install. You maybe already know this and have it working with apache2.

I'm happy to help if you have setup problems, if only to spare someone else going through what I went through. My server is running nginx and postgres from compiles and I am currently writing a script from my bash history, which I will put on github when I feel it won't create any embarrassment for me ;)

EDIT: I should have read properly, you are using passenger. I gave up on passenger eventually, opting to go manual. Not sure how good it is with Apache though.

Your file not found implies a passenger problem. Are you pre-release? If you are then you might want to consider just getting R&R installed via RVM and Gems first, then getting passenger working later.

There should be a database.yml in the config folder of your project by the way.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct