| Author |
Message |
jawainc
Joined: 10 Jan 2012
Posts: 7
|
| Posted: Fri Jan 20, 2012 6:13 am Post subject: 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 |
|
| Back to top |
|
jawainc
Joined: 10 Jan 2012
Posts: 7
|
| Posted: Fri Jan 20, 2012 1:07 pm Post subject: |
|
|
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
<VirtualHost *:80>
ServerAdmin webmaster@examp.com
ServerName examp.com
ServerAlias www.examp.com
DocumentRoot /srv/www/examp.com/appdir/public
<Directory /srv/www/examp.com/appdir/public>
Options +Indexes +FollowSymLinks +MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
|
| Back to top |
|
tentimes
Joined: 16 Jun 2010
Posts: 56
|
| Posted: Mon Jan 23, 2012 7:37 am Post subject: |
|
|
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. |
|
| Back to top |
|
tentimes
Joined: 16 Jun 2010
Posts: 56
|
| Posted: Mon Jan 23, 2012 7:40 am Post subject: |
|
|
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. |
|
| Back to top |
|
| |