Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jan 20, 2012 7:13 am 
Offline
Senior Newbie

Joined: Tue Jan 10, 2012 3:17 pm
Posts: 7
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


Top
   
 Post subject:
PostPosted: Fri Jan 20, 2012 2:07 pm 
Offline
Senior Newbie

Joined: Tue Jan 10, 2012 3:17 pm
Posts: 7
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>


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 8:37 am 
Offline
Senior Member

Joined: Wed Jun 16, 2010 8:22 pm
Posts: 61
Website: http://www.kevinmccaughey.org
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.


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 8:40 am 
Offline
Senior Member

Joined: Wed Jun 16, 2010 8:22 pm
Posts: 61
Website: http://www.kevinmccaughey.org
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group